Fix cause of viewport-related flakiness in iOS tests