https://youtu.be/PwqjKNBnfqE?si=FxIDvaSaVkEUPdS7
Just to let everyone know that there is new pvp bug in mobile version.
Resolution- You can avoid this problem by first opening the pokedex before you do anything else. You only need to do this once after you launched the game and you can close the dex again immediately. This will prevent this problem from happening. Alternatively you can download the game again. The bug is fixed in the current latest version. On windows it should update automatically.