Skip to content
← All insights

Mobile layout6 min read

How to design a mobile screen that fits different phone sizes

Use a real booking card to diagnose cramped layouts, long labels and hidden actions. Learn which dimension to change and how to verify the fix on a phone.

Two different-sized phone cases beside a caliper on a studio workbench

Test the narrowest meaningful version of the task with your longest realistic content. Fix the first container that runs out of room, then repeat the same task on a larger phone.

The appointment card looks tidy until a customer selects “Initial consultation and equipment fitting”. The time slips out of sight, or the confirm button sits halfway off a small phone. Shortening that particular service name might rescue one screenshot. The next appointment with a longer name will find the same weakness. A better test starts with the information the customer must see before they tap.

Give the layout a real job

Write one sentence for the task. A customer must be able to identify the service, check the time, and confirm the booking. Prepare two records. One has the short title “Consultation” and a short venue name. The other has the longer service title, “Wednesday 18 November, 11.30 am” and a two-line address. Use those records throughout the test. Changing both your test data and the layout makes it hard to tell what fixed the problem.

Draw two boxes on paper or choose two preview widths, for example 320 and 430 logical pixels. These are stress cases, not a list of devices Appsanic targets. Suppose a narrow card is 288 pixels wide after the page margins. Give the card 16 pixels of padding on either side and its content has 256 pixels. A 56-pixel photo, 12-pixel gap and 100-pixel time label leave just 88 pixels for the service name before accounting for any other gaps. The arithmetic explains why a different font is unlikely to save that row.

Decide which elements can move

Keep the service name and time together as a reading group. Move the time underneath the title if they compete horizontally. Let the title wrap and give its parent enough height to accommodate the next line. If the photo is decorative, try a smaller treatment. If the photo identifies which professional the customer booked, keep that information visible and move a lower-priority detail instead.

In Appsanic, select the affected child in Layers, then select its parent. Look at Size, Layout and Spacing in the Inspector for both. A percentage width follows the available parent width. A numeric width can still be appropriate for an avatar with a predictable shape. An automatic height gives a growing block room to use. Change one setting, apply it with Enter or by leaving the field, and rerun the long record. The Inspector guide explains which values each control accepts.

Here is the same appointment in a worked Appsanic prototype at 320 and 430 logical pixels. Read the whole service name, then follow the clinician, date and venue down the card. At the narrower width the page heading wraps and the venue uses more lines. The confirmation button moves down with the extra content. At the wider width those details still belong to the same appointment. Both screenshots use the same text and font so you can attribute the change in line breaks to the available space.

For a more revealing comparison, temporarily cover the bottom half of the card and ask someone to name the service. Then reveal the rest and ask which clinician and entrance they would use. If they can answer only at the wider width, mark the first missing word and look at that element’s available space. A screenshot with everything technically visible can still group a time more closely with the next appointment than with its own. Read through a pair of adjacent records before deciding the screen is ready.

Give Sanic AI a test it can understand

A useful instruction for this case is “On the appointment details page, keep the complete service name, date and Confirm booking action visible at narrow widths. Let the service name wrap and move the date onto its own line. Preserve the booking action and the other pages.” After applying the change, open Preview and tap through. A visually improved button that now leads to the wrong page is a regression worth finding immediately.

Test the screen with your thumb

  1. On the smaller width, inspect the long record from the top and follow the natural reading order. Make sure the customer can reach every piece of information by ordinary vertical scrolling.
  2. Focus any editable field. Bring up the keyboard and check whether the active field and the step after it remain reachable.
  3. Repeat the same record on the wider phone. A single short line stranded in a large empty row often means a fixed width or spacer survived the narrow-screen fix.
  4. Make the final check in a real device preview when available. Record the width, the text that caused the problem and the tap that now succeeds. The phone preview guide explains how to open the current project revision.

When another screen breaks, follow the overflowing text towards its ancestors until one can no longer expand. That gives you a small change you can explain, a reproducible record to retest and a much better handoff than “make everything responsive”.

Find the width where two lines become three

A layout can pass at both test widths and still be awkward between them. Consider two appointments at the same clinic, one with Dr Martin Blake and one with Dr Martin Blackwell. If both cards show only “Dr Martin Bla…”, the customer cannot tell which appointment they are confirming. The screen technically fits and the button remains tappable. The information needed to make the choice has disappeared.

Use those two records and move through several widths between your narrow and wide examples. Note the first width where you can no longer distinguish the surnames. At that width, inspect the label and its parent. If the label wraps but the next row covers its last line, give the parent room to grow. If the label stays on one line despite spare vertical space, inspect its text settings and the fixed-width elements beside it. Repeat at the troublesome width before going back to the extremes.

Give another person a precise instruction such as “Confirm with Dr Martin Blackwell”. Let them choose without opening both records. Repeating the choice with the cards in the opposite order reveals whether the labels actually helped. The mobile usability test guide shows how to record that first choice without steering the tester.

When you find a troublesome width, select the layout that encloses the text and open Size. In this Appsanic Inspector example both Width and Height read Auto. That gives you a concrete starting point to record. Write down the parent’s width, the long text that caused the extra line and which element moved underneath. A child may have room to wrap while an enclosing card still has a fixed height. Follow the same label up through its parents until the measurements explain what you see.

Appsanic Inspector Size section shows separate Width and Height fields, both set to Auto.

Recheck with a deliberately short record before accepting the fix. A taller fixed card might leave an enormous gap under “Consultation” while barely fitting the long service. A layout that grows with the content can handle both examples. Keep the two screenshots with the exact widths and text used to capture them. Someone reviewing the next typeface or translation can repeat the same comparison, even if they own a different phone.

Explore the Appsanic Inspector

Published

Analytics cookies

With your OK, we use Google Analytics to count visits and see which pages people find useful. It sets cookies and sends Google details of your visit, such as the pages you open. Nothing loads unless you accept. Cookie Policy