Do you have any idea how I could stop this from happening?
Start by switching to the classic template if this works correctly then look at all of the js that your template is loading