Added viewport hook for IOS devices