Open, half fold and close the phone. Every change is logged and kept across closes. Clear log keeps the sizes it has learned; Forget sizes resets them.
APIs
CSS posture query
foldedcontinuousno match
An API is missing. On the phone, go to Settings > Apps > Safari > Advanced > Feature Flags,
turn on Device Posture API and Viewport Segments API, then fully close Safari and reload this page.