update viewport for mobile