How do you make an SVG responsive without distorting it?

A responsive SVG needs a correct viewBox and CSS that changes one displayed dimension while the other remains automatic. The viewBox defines the drawing’s internal coordinate system and aspect ratio. Do not remove the viewBox when stripping fixed width and height from an SVG.
For an SVG loaded through img, use the same responsive sizing pattern as other images. The file’s root viewBox should tightly frame the artwork. Extra whitespace inside the viewBox is part of the image and can make the graphic appear too small even when the element fills its container.
<img class='diagram' src='workflow.svg' width='1200' height='600' alt='Workflow from request to publication'>
.diagram {
display: block;
width: 100%;
height: auto;
}
Inline SVG can use width: 100% and height: auto when modern layout can infer the ratio from the viewBox. If the SVG must fill a fixed box, control scaling with preserveAspectRatio. The usual xMidYMid meet behavior keeps the whole drawing visible; slice fills the box and crops edges.
Avoid stretching by setting unrelated width and height values on the SVG or its container. Text inside a complex diagram may become unreadable on phones even when the geometry scales correctly. Use a simplified mobile diagram, allow horizontal scrolling, or replace embedded labels with surrounding HTML when the graphic carries detailed information.
Test the SVG in Safari, Chrome and Firefox at fractional widths. Check strokes, masks, filters and embedded fonts because these can behave differently from simple paths. Confirm that the accessible name remains accurate, keyboard focus is visible for interactive SVG controls, and the graphic does not overflow when users enlarge page text.