Why is a mobile device downloading the largest responsive image?

A mobile device may download the largest responsive image when sizes implies a large slot, the screen has a high device pixel ratio or the candidate set lacks a suitable middle size. A narrow CSS viewport does not always mean a low-resolution display. Check the required source pixels, not the device label.
Without a sizes attribute, a width-descriptor srcset is commonly evaluated as though the image uses 100vw. If CSS displays it at 50vw or inside a narrow card, the browser receives an inflated slot hint. Match sizes to the real layout and keep the default condition accurate.
A 390 CSS-pixel full-width image on a ratio-3 screen can need around 1170 source pixels for full density. The browser may reasonably choose a 1200w or larger candidate. Provide several optimized widths so it does not jump from a small file directly to an oversized desktop source.
Caching can make tests misleading. A browser that already downloaded the large file may reuse it after the viewport narrows. Start a fresh session, disable cache and inspect currentSrc. Check whether preload markup names a large source before the responsive attributes are parsed.
Measure transfer bytes as well as dimensions. Modern formats and compression can make a larger candidate affordable, while a poorly compressed mobile crop remains expensive. Fix sizes, candidate spacing and preload configuration before trying to override the browser’s selection with JavaScript. Test the finished component with keyboard focus, touch input and a resized desktop window. Responsive geometry works only when controls stay reachable and the visual sequence matches the document order.