Toddler don’t want to goto school

She just started school 3 months ago and doesn’t wanna go anymore. It’s been pretty bad getting her to school the whole time going they had to hold her down when I dropped her off. She said a teacher at the school isn’t nice to her & she misses me when she goes to school and they always yell at her and tell her to stop crying. Would homeschooling be a better option? She’s only 5 years old. And I don’t know what goes on at school bc they won’t let me walk her to class or go in the school campus just office that’s the policy I guess.

Edit / what do I even say to the teacher?? I’m a first time mom here in new at this 😭