Since you control the contents of the iframe that hosts your game, you have to figure out how to do the HTML and CSS to work on all device sizes. If you’re using a game engine then it may have export templates that you can customize to accomplish that.