Layout bug · Fix guide

Text Cut Off on Mobile? Why It Happens and How to Fix It

Updated October 22, 2026

Text gets cut off on mobile when its container is too small for the wrapped text and hides the overflow. Fixed heights, overflow: hidden, white-space: nowrap, large fixed font sizes and single-line truncation are the usual causes. Let the container grow, allow wrapping, and size fonts responsively.

Quick diagnosis

  • Bottom of a heading or paragraph missing: fixed height with overflow hidden.
  • Word or label runs off the right edge: white-space: nowrap or a long unbroken word.
  • Product names end in "...": intentional truncation that is too aggressive on phones.
  • Only for some visitors: their phone's text size setting is larger.

Causes and fixes

1

Fixed height plus overflow: hidden

Most common

Cards and banners are often given a fixed height so they line up on desktop. On mobile the text wraps onto more lines and the hidden overflow clips it.

Fix: Use min-height instead of height, or remove overflow: hidden from text containers.

2

white-space: nowrap on buttons and labels

Buttons and navigation items set to never wrap keep their full width on a narrow screen and get clipped by their parent.

Fix: Allow wrapping on mobile, or shorten the label. "Add to cart" fits where "Add this item to your shopping cart" does not.

3

Font sizes set in fixed pixels

A 64px hero heading that fits on desktop is wider than a phone for any word longer than six letters.

Fix: Use fluid type such as font-size: clamp(2rem, 6vw, 4rem) so headings scale with the screen.

4

Line clamping and ellipsis

-webkit-line-clamp and text-overflow: ellipsis are set to show two lines of a product name, which hides the part that distinguishes one product from another on mobile.

Fix: Allow one more line on mobile, or show the full name on the product page and keep the clamp only in dense grids.

5

Viewport units for height

Hero sections sized with 100vh on iPhone include the area behind the browser toolbar, so the bottom of the text, and often the button, sits off-screen.

Fix: Use 100dvh or min-height: 100svh, which account for the browser toolbar.

6

Larger text settings and zoom

Many visitors increase their phone's text size. Layouts tested only at the default size clip their text.

Fix: Test with the phone set to a larger text size and avoid fixed heights anywhere that holds text.

How to find it on your site

  1. 1

    Test at 360px

    Most clipping appears on the narrowest common phones. Set DevTools to 360px wide and scroll every template.

  2. 2

    Use your longest content

    Check your longest product title, heading and button label. Designs are often approved with short placeholder text.

  3. 3

    Inspect the clipped box

    In DevTools look for height, overflow, white-space and line-clamp rules on the element and its parents.

  4. 4

    Increase text size

    Turn on larger text on a real phone, or set the browser's default font size higher, and recheck.

Fixes by platform

Shopify

Product card titles in collection grids and slideshow headings are the usual places. Check the theme's typography settings for mobile heading sizes and the card settings for title truncation.

WordPress

Page builder headings often have desktop font sizes that are not overridden for mobile. Set the mobile font size in the builder's responsive controls.

Wix and Squarespace

Text boxes in Wix have fixed sizes on the canvas. In the mobile editor, enlarge text boxes or reduce font size; in Squarespace set mobile font scaling in Site Styles.

Custom code

Use clamp() for type, min-height for containers, and add an automated check for elements whose scrollHeight exceeds clientHeight while overflow is hidden.

Frequently asked questions

Why is text cut off on my website on mobile?

Because the box holding the text is too small for it once it wraps on a narrow screen, and the box hides anything that overflows. Fixed heights, overflow: hidden, white-space: nowrap and large fixed font sizes are the usual causes.

How do I make text fit on mobile screens?

Use responsive font sizes such as clamp(), let containers grow with min-height instead of a fixed height, allow text to wrap, and shorten labels that must stay on one line.

Why is the bottom of my hero section cut off on iPhone?

A section sized with 100vh on iPhone includes the area behind Safari's toolbar. Use 100dvh or min-height: 100svh instead.

Why does my text look fine on my phone but cut off on others?

Other people may use a narrower phone or a larger text size setting. Test at 360px width and with larger text enabled.