I have been developing an incremental game using HTML, CSS, and JS. The issue I am facing is that the buttons for buildings and other clickable features appear properly on a laptop or desktop but only display one line of text when viewed on a tablet or phone.
How can I ensure that the button displays the same way on mobile devices as it does on a desktop computer?
EDIT: I suspect the issue may be with the Chrome browser on mobile devices as friends testing on iPhone and tablets experienced the same problem. Currently, there are no CSS styles applied to the buttons.
Here is an image illustrating the problem:
This is the HTML code in question:
<button onclick="buyDirtHut()">
Buy Dirt Hut<br />
Each Dirt Hut gives you 2 population per second<br />
Dirt Huts: <span id="dirtHuts">0</span><br />
Dirt Hut Cost: <span id="dirtHutCost">1000</span> Gold
</button>