I think specifically mobile safari refuses to pass through the HDR properties in most cases.
I think Apple is trying to keep HDR for native apps only, like many other platform exclusive features like faceid, fingerprint reading, etc - which are all unavailable to webapps. Video is probably an exception.
See https://w3c.github.io/ColorWeb-CG/#png and the linked ML thread for some details.