Hello! That's certainly weird. If I may ask, what browser and what version of that browser are you using?
Could you try another game made with Pygame to see if it works? Here's one: https://g-bloxy.itch.io/minesweeper
Could you try another game made with Pygame to see if it works? Here's one: https://g-bloxy.itch.io/minesweeper