Fixed resolution on mobile phones

On mobile, resolution was incorrect due to devicePixelRatio != 1
This should fix the pixel size problem #4902