The problem stopped for a while but now it’s back. I switched the theme to Twenty Twenty-Three and removed all plugins and tried a variety of scenarios. It’s all tied specifically to “combine javascript files” and even with just WP Rocket, Visual Portfolio and Twenty Twenty-Three it was not showing up properly.
I would be fine excluding the files, but I am not sure how to narrow down which Javascript files I would be excluding.