Really bad wi-fi on certain networks with my M2 Macbook Pro

Hello everyone, I’ve had this issue for some time now.

The quality and speed of wi-fi when using my M2 Macbook Pro is really bad on certain networks, and unfortunately one of said networks is of my house. I can connect to the wi-fi just fine, however it is really slow (which shouldn’t be the case) and can barely open any websites. However, when connected to my personal hotspot or the wi-fi at my college there are no problems whatsoever. This lead me to believe that there is some sort of issue with my wi-fi at home but i have no other devices facing this problem. Any other device works fine with the wi-fi.

What can be the cause of this problem and how can i fix it? Any help is appreciated.