I believe my website was hacked. When I run a page through the google data structured testing tool, I get a spammy version of my page. The first thing I did was to restore the site from a backup from before the hack. Afterwards, I located some malicious looking files on my server which I have since deleted. I then contacted my hosting provider, they did a scan on my site, and I was told that there were no problems with the site and everything was clean.
However, running another page on the website through the Google Data Structured Testing Tool and using Google Console's Live Test URL Inspection both revealed the spammy HTML.
Accessing the website via a direct link did not throw up the problem. The problem is only in how Google sees the website. Is the problem still with my website? I thought it could have been a google cache problem, but it seems weird for their live test to be caching results.