Fixed resolution on mobile phones

On mobile, resolution was incorrect due to devicePixelRatio != 1
Updated per @mrdoob suggestion.