Jitsi always appends to the end of the page?

I am having an issue where I cannot get Jitsi to append the dom element I provided at the location the dom element is located, instead the Iframe is appended to the end of the document always.

Is there a solution to placing jitsi where the element I provided is placed in the page?

Are you passing the parentNode param correctly?
The iframe is being appended to that element if passed: https://github.com/jitsi/jitsi-meet/blob/b4b4339a1a1346f2b36959199af2e0b904fbf33d/modules/API/external/external_api.js#L329
If not passed it defaults to the body and the iframe is appended to the body. https://github.com/jitsi/jitsi-meet/blob/b4b4339a1a1346f2b36959199af2e0b904fbf33d/modules/API/external/external_api.js#L254

I was able to solve my problem. It was a timing issue with the Svelte framework. Adding a delay solved the problem