Dynamically change HTML component code

Hello,
I am embedding a form in my wix website using HTMLComponent … I set the code in the component like so:


I then want to dynamically amend that code to append url parameters to the link found inside src=“…”

let myParams = session.getItem("urlParams");//my code passes url params from the home page to the forms that users fill out.
let strSrc = $w("#html1").src;
$w("#html1").src = strSrc.replace("https://form.jotform.com/92197681131155", "https://form.jotform.com/92197681131155" + myParams);

The problem is… the .src attribute of the html component is not just the text thats in the code block above… wix changes it to some http address…

If I only wanted to use the http component to point to a web address than this would work no problem - but for some reason using the web address for my wix form does not display on mobile.

Anyone know a way of accomplishing this?
Many Thanks!