t-test will be used to compare the outcome variable b/n two independent groups, my question is If I want to consider confounder what stat method is suitable?
Considering a confounding variable in your analysis, you might use analysis of covariance (ANCOVA). ANCOVA allows you to adjust for the effects of the confounding variable while comparing the outcome variable between the two independent groups.