Uncaught ReferenceError: Mautic is not defined

Your software
My Mautic version is: v4.4.1
My PHP version is: 7.4.23
My Database type and version is: 10.3.34-MariaDB-0ubuntu0.20.04.1

Your problem
My problem is:
I am using mautic Lead form in my own website and it is working fine and lead is also capture properly.
but problem is the page where lead form is integrated when I inspect that page I am getting below error , no idea from where this is coming and how to resolve this.

Uncaught ReferenceError: Mautic is not defined
at parcelRequire.RfSX…/asset.service (builder.js:156:1)
at f (builder.js?v4e51210b:1:468)
at parcelRequire.iHk9 (builder.js?v4e51210b:1:771)
at builder.js?v4e51210b:1:1023

File Path : mautic/plugins/GrapesJsBuilderBundle/Assets/library/js/dist/builder.js

Mautic.launchBuilder = launchBuilderGrapesjs;
Mautic.initSelectTheme = initSelectThemeGrapesjs(Mautic.initSelectTheme);
Mautic.setThemeHtml = setThemeHtml;

Please guide us. Awaiting for your response.

This looks like Grapesjs (the email builder) is loaded - but it should not.

Are you using it on a Mautic landingpage or are you integrating it into your own website?

I am using mautic lead form on my own website. Thanks

We are integrated mautic lead form into our own website,
Please suggest some solution so that we can apply it at our end.
Awaiting for your response.

@shyamalm how did you integrate it? Are you using a CMS?

Mautic inbulid Iframe code integrated in our website.

Is it an option to try via the JavaScript (recommended)?

<script type="text/javascript" src="https://YOURMAUTIC/form/generate.js?id=1"></script>

I think your issue is related to this: