Automatic Form HTML showing up at bottom of page only

Your software
My Mautic version is: 4.4.10

Your problem
My problem is:

I’m trying to include a form in my webpage (next.js/vercel) like this:

<Script type="text/javascript" src="https://xxx/form/generate.js?id=2" id="mau"></Script>

But the form is only showing up at the bottom of the page and not where I insert the “Script”. How can I control where the form is placed?

These errors are showing in the log:

Steps I have tried to fix the problem:

I am trying this code:

          <Script type="text/javascript" src="https://xxx/form/generate.js?id=2" id="mau" />

and instead of showing between “here” and “there” it shows at the bottom of the page.