Constrain the viewport for mobile devices