that was my original thought... just adjust it based on screen size but then you could just resize your browser window and itll magically think its on a phone or somethin.
I think the best answer would be a combo of checking the browser agent and resizing the layouts to fix the screen dimensions.
The agent check mainly to enable touch controls/hud and the rest to fit the display.
Is there any way to resize the client size (playable area) based on display size? I know you can use fullscreen scale mode but its actin kinda funny in portrait mode on my iphone