Update popup layout for mobile view