Using Client Hints to resize an image on the server side according to the viewport width

Resize your browser, then refresh the page to deliver an image limited to 100% of the viewport.