Depression and anxiety are common after months of social isolation, and they can have a negative impact on anyone's quality of life if they are not treated promptly and appropriately. The purpose of this study was to determine whether undergraduate and graduate students preferred classroom or online classes and to determine whether the existence of sadness or anxiety connected to the COVID-19 pandemic changed their view of their academic achievement. A cross-sectional design was used in this investigation. To determine the presence of mental health disorders in undergraduate and graduate students, we employed the Patient Health Questionnaire-9 (PHQ-9) depression screening scale and the General Anxiety Disorder-7 (GAD-7) anxiety screening scale. We examined whether these diseases changed students' perceptions of their academic success using the Academic Self-Concept Scale (ASCS). 610 students responded to the survey. When questioned about their preferred class type, 581 students (95.2 percent) said that they preferred classroom classes. The average score on the Academic Self-Concept Scale was 2.760.35. PHQ-9 mean scores were 11.946.90, while GAD-7 mean scores were 10.305.66. The intensity of depression and anxiety had a significant effect on Academic Self-Concept Scale scores (p0.001 and p0.05, respectively). The findings indicate that students in a typical circumstance do not face difficulty transitioning from classroom-based instruction to online delivery.