My test phone, the Galaxy S3 Mini, has a resolution of 800x480 according to its specs.
Strangely, when I run the following code in my HTML game:
window.innerWidth
window.innerHeight
The width appears as 533 and the height as 295.
I recently discovered window.devicePixelRatio and found that it is 1.5 for my phone. But how can this information help me enhance the design of my game?
The main issue is that my game is optimized for 800x480 resolution, causing it to look stretched on my device.