I absolutely cannot stand these two moids in my IT classes right now. One sits behind me, the other is my table mate. My tablemate is some severely autistic manlet who talks about how he shops for silk pajamas at Victoria's Secret and shows me pictures of his Bath and Body Works collection. He also invades my space constantly and snatched my phone out of my hand to put his discord into my phone after I tried to avoid him.
The other, he was okay at first. We talked about our interests, had a few in common. But then he started following me around during breaks and lunch. And then he'd look at my screen from behind and text me comments about it. Like are we so serious right now?
Horrifying behavior from these moids. It is clear they do not respect you as a person.
Although too late for this incident, never let them take your smartphone out of your hands. It shows you're passive and will tolerate their intrusive behavior.
RESIST THE URGE TO BE AGREEABLE!
If they act indecent, tell them loud and clear (so everyone in the room hears this) you're not interested, that they should leave you alone/stop doing that or whatever seems appropriate to what they're trying to do.
Make it so other people will look and see the shit they're pulling. Public shaming will work immediately.
It's relatively safe if you just concentrate on the things they're actually doing, like "Stop leaning over your desk and getting up in my stuff!" (although you can never be 100% safe with moids).
If you're not afraid of them becoming aggressive and want it to sting deeply, you can emasculate them, subtly or openly. (Calling wearing silk pajamas as a guy gay or icky in passing for example)
But I agree the best course of action now is to speak with a school employee (do you have some sort of equality bureau or whatever?) and see if they're on your side, this way you'll get rid of them without conflict in person.