Can a muslim girl take her education in-person from a non-mahram muslim or non-muslim male teacher by attending his classroom? Here in my region this is norm and the parents and the girls doesn’t even care about Hijab; some teachers got fired from school because of their ill-lust to these teenage girls!!! So what's the ruling on this in Islam?
Traditional fiqh advises girls to be tought by female teachers, with the possiblity of male teachers teaching them behind a curtain (see here).
This fatwa says that it is allowable for female students to be taught by male teachers at university under the condition that there are no major incidents.
In your case, at least those teachers got fired, but morality may be a problem even in the scope of the more tolerant second fatwa.