Set viewport correctly for mobile devices