As far as i know there is no way of changing that during gameplay, as its the index.html that sets the different scaling property.
Not 100% sure it will work, but it should in theory.
1. Export the game several times, for all the different modes you need.
2. Save the index file with different names in the same game folder.
3. Create a landing page where you check if the game is on mobile and/or whatever checks you need, then use the Browser plugin and to goto URL and point to the index you need loaded.