How to optimize HTML5 game version for mobiles?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Robotex

My game published for browsers don’t work with phones. Is it possible to optimize it for phones? Is it possible to enable on screen control buttons if mobile phone is detected?

:bust_in_silhouette: Reply From: exuin

I don’t think so. OS.get_name() will return "HTML5"and not a mobile device. Consider putting mobile controls in an options menu or offering an app download.