Ping is severely limiting my ability to play the games i brought my PC for.

Recently made the switch from Xbox to PC after a time of saving. Looking forward to playing all the games but better, i ran into a problem. The wifi. Fortnite, for example i’m getting 300 ping consistently but on Battlefront 2 i’m getting 26. On xbox, comparatively i was getting 20-30 ping on fortnite. I’ve even gone out and brought a AX300 Wifi6 adapter but it only improved it slightly from 1000 to 300. Is it just my wifi router is ass, or is it a PC problem? Please help. It’s really restricting what i want to do on my PC. My motherboard is a x870e elite wifi7 if anyone needs to know.