Better viewport handling, compatible with older iOS devices, but still fixes the aliasing issue on the BlackBerry Q10 when using scale=1