My static homepage works properly on test site.
If you have added any widget in your footer.
Remove them temporary. It could be one of them with script that’s written wrongly.
You can also disable one plugin at a time to see which plugin is causing this issue.
Any content with script that you had added in your footer could be causing this problem.