Fix viewport issue on iOS