I resolved this issue, so for anyone experiencing the same problem, it’s caused by the Elementor plugin, which has Elementor caching enabled in its settings. You just need to disable this option. Thank you to everyone who reached out and wanted to help me—I really appreciate it!