I have created a Shopify embedded app using the Remix template.
In this app, I am using a combination of Polaris React and Polaris Web Components.
I have also integrated Microsoft Clarity for session recording and analytics.
Issue:
In Microsoft Clarity session recordings, the Polaris React component styles are not applied. The UI appears broken or unstyled in the recordings.
However, when using the app normally inside the Shopify Admin, everything works and styles are applied correctly.
This issue seems to occur only in Clarity session recordings, not in the actual app behavior.
Polaris styles import:
import polarisStyles from “
/polaris/build/esm/styles.css?url”;
export const links = () => [{ rel: “stylesheet”, href: polarisStyles }];
Additional notes:
-
App is embedded inside Shopify Admin (iframe)
-
Using Remix + Polaris React + Polaris Web Components
-
No styling issues outside of session recordings
For reference, please review the attached screenshot showing how the UI appears in the Clarity recording.
Has anyone faced a similar issue with Microsoft Clarity or other session recording tools when using Polaris React in a Remix embedded app? Any guidance or workaround would be appreciated.