Skip to main content
The Aftersell Cart adapts automatically on phones and touch devices without separate mobile layout settings. Use this guide to understand what changes on small screens and what to verify when testing on a phone.

Drawer size and screen height

  • Full width on phones: The drawer uses your configured Desktop width (440px by default in Design settings), capped at the viewport width (100vw). Any screen narrower than that width gets a full-width drawer.
  • Visible viewport height: On the storefront, the drawer uses dynamic viewport height (100dvh, with 100vh as a fallback for older browsers) so it tracks the visible screen area as mobile browser toolbars expand and collapse. The pinned header and footer stay on screen.

Page scroll lock

While the live drawer is open, the storefront page behind it is pinned in place so touch drags inside the cart do not scroll the page underneath. When the drawer closes, the page returns to its original scroll position.

Form fields and iOS zoom

On touch-only devices without hover ((hover: none) and (pointer: coarse)), text inputs, text areas, and select dropdowns inside the drawer use a 16px font size. iOS Safari zooms the page when a shopper focuses a field smaller than 16px, so using 16px prevents unwanted zoom when tapping discount inputs, notes, or variant selectors. Checkboxes, radio buttons, and desktop views keep their block font sizes.

iPhone home bar spacing

The cart footer adds bottom safe-area padding (env(safe-area-inset-bottom, 0px)). iOS Safari only applies a non-zero inset when your storefront theme’s viewport meta tag includes viewport-fit=cover:
  • Theme includes viewport-fit=cover: The footer clears the iPhone home indicator bar.
  • Theme omits viewport-fit=cover: The safe-area inset resolves to 0px, so the footer sits at the bottom edge of the screen.

Express payment buttons

In the Express payments block, accelerated checkout buttons switch from Default button height to Mobile button height at viewport widths of 749px and below.

What to check on a phone

When testing your published cart or a theme preview on a phone, check:
  1. Toolbar resize: Open the drawer with the mobile browser address bar both visible and collapsed to confirm the header and footer stay on screen.
  2. Background scroll: Scroll inside the cart to confirm the storefront page behind the drawer stays pinned.
  3. Field focus on iOS: Tap a discount code field, cart note, or variant dropdown on an iPhone and confirm Safari does not zoom the page.
  4. Bottom clearance on iPhone: If the checkout button sits too close to the iPhone home bar, check whether layout/theme.liquid sets viewport-fit=cover in its viewport meta tag.
  5. Express button height: At 749px wide and below, confirm accelerated checkout buttons match your Mobile button height setting.