Oh yeah... HTML5 is terrible with GMS2 if I must admit. Stuff will work on PC and Android and completely break with HTML5 it's one of GMS2s downsides if I am completely honest.
But if you found GMS2 interesting I'd highly recommend joining Gamemaker Kitchen they have a lot of libraries that will really help you take your game to the next level.
https://discord.com/invite/bzXzzC38VN
Think of Gamemaker as 2D Unity without all the bloat.