How to switch to simpler icon artwork on narrow screens
Answer in brief
Use a picture element for art direction when a detailed composition becomes illegible. The small-screen source can remove secondary objects while preserving the same meaning.
Swap a delivery illustration
Show a van alone in a narrow order summary and the van beside a stack of boxes on desktop. Put the narrow-screen source first and retain an img fallback with the shared text alternative. Resize across the breakpoint and check both compositions.
Keep the illustration and layout breakpoints together
If the small illustration switches at 600 pixels but the card switches to its stacked layout at 640, inspect the 40-pixel interval between those rules. The detailed illustration may arrive while the card is still narrow. Resize a few pixels on either side of both thresholds and align them where the composition actually needs to change.
Sources
- [1] HTML Standard — WHATWG, accessed November 23, 2026
Frequently asked questions
Where should the alternative text go?
Place it on the img inside picture. Every source should convey the meaning expressed by that text.