Style mismatch between preview and deployment

We have developed a landing page using builder’s page model, we have deployed it using next.js app router and we have used BuilderComponent to render the page, we have noticed style mismatch between the preview and the deployed page, this is the preview link: Builder.io Component Preview

And this is the deployment link: Home

If anyone faced a similar issue before, could you please guide us on how to resolve this or pinpoint the rootcause?

Note: we have a lot of custom code blocks with style tags and HTML elements, do you think this might be causing the mismatch issue?

Hello @Speekr,

Thanks for sharing the details - quick check-in on this thread.

Are you still seeing the style mismatch between the Builder preview and the deployed Next.js page?

If yes, we can definitely dig deeper. Also, to your note:

“We have a lot of custom code blocks with style tags and HTML elements”
Yes — that can absolutely contribute to mismatches. Inline <style> tags, global CSS leakage, hydration differences, or styles depending on runtime-only behavior can all behave differently between Preview (iframe + editor context) and production.

If the issue is still happening, it would help to know:

  • Whether the mismatch is layout-related, fonts, spacing, or missing styles
  • Whether you’re using App Router + BuilderComponent with streaming
  • Whether any styles depend on window, dynamic class injection, or external scripts

Thanks,