Menu
FeaturesPricingAboutFAQGuidesNPS calculatorTemplatesSign inView 7-day trial

Testing tour dismissal on a small screen

Simulating the viewport that matters

A tour that looks fine on a 1440px desktop can break on a 375px phone. The tooltip may overflow, the target element may sit off-screen, or the "Next" button may fall behind a fixed header. Test each step at the breakpoints your users hit: 320px, 375px, 414px, and 768px width.

Open Chrome DevTools, toggle the device toolbar, and select "Responsive". Set width to 375px, height to 667px, device pixel ratio 2. Reload the page and start the tour. Walk every step manually; do not rely on automated screenshots alone.

Watching for three failure modes

  1. Tooltip clipping – The tooltip width exceeds the viewport. Fix: cap tooltip max-width: calc(100vw - 32px) and allow wrapping.
  2. Target occlusion – A fixed bottom nav or cookie banner covers the highlighted element. Fix: scroll the target into view with scrollIntoView({block: "center", inline: "nearest"}) after the tooltip positions.
  3. Button trap – The "Next" button sits outside the thumb zone. Fix: pin primary actions to the bottom 20% of the tooltip and ensure touch-action: manipulation.

Worked example: cookie banner collision

Before – Step 2 highlights the "Create project" button in the bottom-right corner. On 375px width, the cookie consent banner (height 96px) sits directly over the button. The tooltip points at the banner; the user cannot tap the real button.

After – Step 2 adds a beforeShow callback: document.querySelector('.cookie-banner')?.scrollIntoView({block: 'end'}) to push the banner down, then target.scrollIntoView({block: 'center'}). The button becomes fully visible. Verification: load the page at 375px, start tour, confirm step 2 target is fully in view and tappable.

Reusable small-screen test matrix

Width Height DPR Steps to verify
320 568 2 1–5
375 667 2 1–5
414 896 3 1–5
768 1024 2 1–5

Exception: steps that target elements inside a horizontally scrolling table (e.g., a data grid) may intentionally stay off-screen until the user scrolls the table. In those cases, skip the scrollIntoView call and instead show a hint: "Scroll the table right to see this column."

Result: every tour step remains readable and actionable on the smallest supported viewport.

Related: Onboarding Tours features.