my friends are sucky i need advice

okay so i had this friend, emma. so me and emma were really close but there was this other girl called phi. and phi was SUPER jealous that me and emma were friends. so she was really passive aggressive but in like a bullying way. and then emma and phi became like best friends and they were really just aggressive and toxic towards me. they firstly thought i was making my mental illness up, they told me that i was v rude for talking about them behind their backs (they do it to me??) and now, months later, they still have something against me. it's small things tho. like when i walked into class today, they were there and as soon as i came in they left BECAUSE EWWW THEY CANNOT BE IN THE SAME ROOM AS ME. realllllly need advice !!!