Fixed resolution on mobile phones

On mobile, resolution was incorrect due to devicePixelRatio != 1