Building web apps for mobile: design for the narrower view
How to build a web app that works well on phones by changing navigation, content priority, layout, interaction and testing instead of squeezing a desktop interface onto a narrower screen.
Mobile is a different working context
A responsive web app is not a desktop layout made smaller. A phone changes how much a person can see, how they hold and control the interface, the quality of their connection and how easily they can be interrupted.
Desktop designs can show navigation, filters, context and the main task at the same time. On a phone, those elements compete for a narrow view. The design has to decide what deserves attention now and what can be revealed when it becomes useful.
Start with the most important user journey at the smallest realistic width. If that journey only works after several columns have been hidden, the desktop structure may be driving the product instead of the user need.
Use the narrow view to establish priority
Mobile forces useful decisions about hierarchy. The page title, current state, primary action and information needed for the next decision should appear before supporting explanation and secondary controls.
Stacking every desktop panel into one long column is technically responsive, but it can leave the main action several screens away. Reorder content where the mobile journey needs it. A summary can come before detail, filters can open on demand and supporting information can follow the decision it helps explain.
Do not hide important content just because space is limited. Screen width does not tell you that mobile users need less information. It tells you to organise that information more deliberately.
Choose navigation for frequency and depth
Navigation that works across a wide header rarely fits on a phone. Common approaches include a menu button, a bottom navigation bar, a compact tab row and contextual links within a page. Each solves a different problem.
A bottom bar suits three to five destinations people switch between frequently. Icons should have short text labels because an icon alone can be ambiguous. Less frequent destinations can sit in a menu, but the menu should not become a drawer containing every possible action without hierarchy.
Keep navigation stable across routes. Moving icons, changing their order or showing a different set on each page makes people relearn the interface. Highlight the current destination and make browser Back continue to behave as expected.
Frequent global destinations
Use a labelled bottom bar or compact primary navigation
Less frequent global destinations
Use a clearly named menu
Actions for the current screen
Keep them close to the content they affect
Several views within one feature
Consider tabs when the labels remain readableLet layouts reflow instead of merely shrinking
Use flexible widths, Grid and Flexbox so content can reflow without horizontal scrolling. Give grid and flex children a minimum width of zero when long content or animated tracks might otherwise force their parent wider than the viewport.
Choose breakpoints when the content needs to change, not from a list of popular devices. Begin with one column, widen the browser and add another column only when the existing layout has enough room to support it.
Images, tables, code samples and long unbroken values need explicit treatment. Images can scale to their container, code can scroll inside its own block and a large table may need a compact summary or a dedicated detailed view. The whole page should not scroll sideways because one component is wide.
.layout {
display: grid;
grid-template-columns: minmax(0, 1fr);
}
.layout > * {
min-width: 0;
}
img {
display: block;
max-width: 100%;
}
pre {
overflow-x: auto;
}Design controls for touch and movement
A mouse pointer is precise and can hover. A thumb is larger, can obscure the control it presses and may be used while the person is moving. Interactive targets need enough size and separation to avoid accidental activation.
Keep primary actions within comfortable reach, but do not place destructive and routine actions side by side. Provide visible pressed, selected, disabled and loading states so a tap never feels ignored.
Hover can enhance an interface, but it cannot be the only way to reveal information or an action. Keyboard access and visible focus still matter on mobile because phones and tablets can be used with external keyboards and assistive technology.
Make forms easy to complete on a phone
Long forms are especially tiring on mobile. Ask only for information needed at that point, group related fields and use a single column unless two short values clearly belong together.
Use the correct input type and autocomplete attributes so the browser can show an appropriate keyboard and reuse known information. Keep labels visible after a field has been filled. Placeholder text is useful as an example, but it should not carry the label or an essential instruction.
Validation should explain what needs attention next and preserve the person’s input. On submission, prevent accidental repeats, show progress and make success or failure unmistakable.
Treat reading width and spacing as product decisions
A phone already provides a narrow column, but edge-to-edge paragraphs can still feel dense. Use consistent side gutters, a readable base font and line height, and enough separation for headings to divide the page without making every section feel enormous.
Large display headings may need a smaller mobile scale and more natural wrapping. Cards do not always need borders, shadows and generous padding when a simple divided list would use the space more effectively.
Fixed navigation must reserve room in the document so it does not cover the final content. Account for device safe areas around screen edges and test both portrait and landscape layouts.
Performance is part of mobile UX
Mobile users may have slower networks, data limits, older hardware and less available memory. A layout that looks good in a desktop emulator can still feel poor when a large JavaScript bundle delays interaction or images shift the page while loading.
Send appropriately sized images, reserve their dimensions, defer work that is not needed for the first interaction and avoid shipping complete datasets when the current screen needs a small result. Measure on a throttled connection and a modest device profile.
Loading states should preserve context. A stable skeleton or progress message is easier to follow than a blank screen, but it should not disguise an operation that is stalled or has failed.
Test behaviour, not a collection of screenshots
Responsive mode in a desktop browser is useful for exploring widths and finding overflow. It does not reproduce every mobile browser behaviour, including browser controls, virtual keyboards, safe areas, orientation changes, touch and the way fixed elements are composited.
Test important journeys on at least one real phone, and include both major mobile browser engines when the audience justifies it. Check the page at first load, after scrolling, with the keyboard open, at larger text sizes and when an error message appears.
Automated checks can catch viewport overflow, inaccessible names and visual regressions. Human testing is still needed to judge whether navigation is understandable, the important action is easy to reach and the interface remains comfortable over a complete journey.
- Start with the main journey at a narrow width
- Prioritise content instead of stacking the desktop page unchanged
- Keep mobile navigation small, labelled and consistent
- Contain wide components so the page never scrolls horizontally
- Use touch-friendly targets and do not depend on hover
- Make forms work with mobile keyboards and autocomplete
- Budget for slower networks and modest hardware
- Test first load, scrolling, keyboards and real mobile browsers