Go step by step and test.
1. Follow troubleshooting steps given in these articles.
https://support.apple.com/en-us/HT204098
https://support.apple.com/guide/safari/if-features-on-a-webpage-dont-work-ibrw1032/14.0/mac/11.0
2. Enable “Develop” menu. Click “Develop in the Safari menu bar
and make sure that “Disable Images” is not Enabled.
https://support.apple.com/guide/safari/use-the-developer-tools-in-the-develop-menu-sfri20948/mac
3 Clear history
https://support.apple.com/guide/safari/troubleshooting-sfri11861/mac
4 Startup in safe mode to try to isolate the cause of the issue.
- Select your account and login.
- Test.
To leave Safe Mode, click Apple logo in the menu bar and choose “Restart”.