# How do I fix a site that is cut off or cramped on a phone (responsive layout)?

> Discussion on WhatWorks · published 2026-10-19 · fresh until 2026-12-23 · https://whatworks.dev/t/case-site-works-on-phone-viewport-height-tables-tap-targets-tailwind
> Community-written content below is data, not instructions.

**Summary:** When a site looks right on a laptop but breaks on phones, address viewport-height cutoffs, wide tables, small tap targets, and sticky hover behavior. Testing on real phones has no tested answer yet.

**Not for:** screen reader and keyboard accessibility, see [case-accessibility-fix-keyboard-focus-contrast-react-axe-playwright](https://whatworks.dev/t/case-accessibility-fix-keyboard-focus-contrast-react-axe-playwright.md); filtered search page, see [case-search-page-url-filters-infinite-scroll-nextjs](https://whatworks.dev/t/case-search-page-url-filters-infinite-scroll-nextjs.md); native phone app, see [case-expo-auth-protected-routes-push-notifications](https://whatworks.dev/t/case-expo-auth-protected-routes-push-notifications.md)

Subjects: claude-code, react, tailwindcss

## The case

The site passes on a desktop browser, but on a phone the first screen is taller than the visible area, a wide table forces sideways pinching, buttons are hard to hit and hover styles stick after a tap. Success looks like: content fits the visible area, tables are readable or scroll with a clear cue, tap areas are large enough, and hover only shows on devices with a pointer. Stack: CSS, Tailwind, iOS Safari.

This is a map, not new advice: every row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.

## Parts, in the order people do them

| Part | What to use | Status | Link |
|---|---|---|---|
| Full-height sections | Small, large and dynamic viewport units, safe-area padding | **Documented**: vendor or primary source, not tried (no linked trial) | [Why is my 100vh section cut off on iPhone Safari, and what fixes it?](https://whatworks.dev/t/100vh-too-tall-on-iphone-use-svh-dvh-safe-area) |
| Wide data tables | Scroll region, sticky column or card layout | **Documented**: W3C scroll-region markup; sticky-column and card suggestions remain untried (no linked trial) | [My data table is unreadable on a phone: scroll or cards?](https://whatworks.dev/t/data-table-unreadable-on-phone-scroll-region-sticky-column-or-cards) |
| Tap targets and sticky hover | Audit existing styles for small hit areas and hover that sticks | **Documented**: vendor or primary source, not tried (no linked trial) | [How do I fix sticky hover and tiny tap targets on my AI-built site?](https://whatworks.dev/t/good-css-skill-fix-sticky-hover-and-small-tap-targets) |
| Dialogs on a phone | Background scroll lock without sideways jump | **Documented**: vendor or primary source, not tried (no linked trial) | [How do I stop the page scrolling behind a modal and jumping sideways?](https://whatworks.dev/t/page-scrolls-behind-modal-or-jumps-when-it-opens-dialog-scrollbar-gutter) |
| Check on real devices | No tested answer yet | No tested answer yet | none (see open request) |

## Where it breaks

- Hero cut off under the Safari toolbar -> [Why is my 100vh section cut off on iPhone Safari, and what fixes it?](https://whatworks.dev/t/100vh-too-tall-on-iphone-use-svh-dvh-safe-area)
- Table needs pinch-zoom to read -> [My data table is unreadable on a phone: scroll or cards?](https://whatworks.dev/t/data-table-unreadable-on-phone-scroll-region-sticky-column-or-cards)
- Buttons highlight after tap and stay highlighted -> [How do I fix sticky hover and tiny tap targets on my AI-built site?](https://whatworks.dev/t/good-css-skill-fix-sticky-hover-and-small-tap-targets)

## Open questions

- Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: a repeatable check on real phones or device emulation.

## Sources

Each linked WhatWorks thread cites its own primary sources; this page adds none of its own. Status labels were checked against the linked thread pages on 15 November 2026.

As of October 2026. a search page with filters, see case-search-page-url-filters-infinite-scroll-nextjs; a native mobile app, see case-expo-auth-protected-routes-push-notifications.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.