How do you make form fields fit on mobile without horizontal scrolling?

Make form controls fluid within their container and include padding and borders in the declared width. A shared box-sizing: border-box rule plus inline-size: 100% prevents common field overflow. The parent layout must also be allowed to shrink.
*, *::before, *::after { box-sizing: border-box; }
input, select, textarea {
max-inline-size: 100%;
}
.field-control {
inline-size: 100%;
}
Check the input’s size attribute, minimum width, fixed wrappers and long addons such as currency labels. In Flexbox or Grid, set min-width: 0 on the field column. Place prefixes and buttons in a layout that can wrap or uses bounded tracks.
Stack multi-column fields before their labels, hints and errors become cramped. Keep visible labels and allow validation messages to wrap. Date pickers, file inputs and third-party payment fields require direct testing because their intrinsic UI may be wider than a normal text input.
Test 320 CSS pixels, landscape, 200 percent zoom and long localized labels. Do not hide page overflow as a repair. Find the exact field or wrapper that exceeds the viewport, then adjust its sizing so focus indicators, entered values and error controls remain fully visible. Recheck the pattern after typography, spacing or browser-support changes. Shared token updates can revive overflow, so the test should use the limiting content state instead of an ideal screenshot. Keep the layout rule beside the component and document why the threshold or constraint exists. This reduces accidental overrides and gives future editors a concrete condition to retest after content changes. Add this case to responsive regression tests with long content, browser zoom and at least one narrow embedded container. Record the expected wrapping and focus behavior so later component changes can be checked against a known result.