Serve the app with the required COOP/COEP headers so crossOriginIsolated can become true.
Avoid embedding the app in contexts that break isolation (some iframes/proxies).
If the environment cannot be isolated (enterprise proxy, incompatible embeds), treat gallery view / HD features as best-effort and fall back gracefully.