I made my game work well in the HTML export on a PC. However, on a mobile phone, i see only the upper left part of the game. Same problem if i load the game in a small browser window.
I have configured stretch mode "2d" and the aspect to "keep". When inspecting the HTML, i found that the #canvas element is always set to the window size i configured in the project settings. How can i scale down to show the whole game on a smaller screen? OS.get_window_size() returns the canvas size, not the actual browser window size, otherwise i could scale the viewport to fit into the actual browser window size.
What is the proper way to make the game scale down to fit into a small browser window?