I don't know but getting to class late can be really embarrassing[...]
The real issue when you hit higher education is that getting to class late is
disruptive. Interferes with what the teach is doing, the attention of students, etc. Most students at that point don't give two shits about you unless you've cultivated a relationship of some sort with them, so long as you're not messing with their chance at an education. You can get concern or irritation, but mocking generally doesn't happen.
I've had more than one college prof specifically say, "If you're late, don't come in." I've had some lock the door after class started. Usually, in both cases, the prof caveated things with 'come in after class, talk to me' and are pretty understanding if it's not endemic. Most teachers understand shit happens, so long as you're not letting it happen every bloody day. But for those folks that are late constantly... I've seen a couple people fail the class specifically for that. Grades were otherwise passing, but constant tardiness knocked it below the line.
Professors, at least, tend to be a lot more understanding if you talk to them about what's going on. If you're having trouble getting to class, sometimes giving them a heads up about what's going down can be the difference between them coming down on your arse or not.
Point being... I'unno. Just be chill and take measures to prevent being late. I've found waking up early can help tremendously with getting to class on time. If you've got a 20-30 minute empty space before class, you can show up and chill outside the room for a bit. Pre-college it's a bit of a bitch, though, as every high school and earlier schedule I've seen is just shit. No give time between classes, etc. Once you've got some solid control over when classes come down, things get easier.