More info in what zarathu has given:
Pretty much all the reports here of seeing that advisory are from posters running macOS 10.11 El Capitan or older.
A major supplier of browser security certificates has allowed some of its certs to expire. This primarily affects OS versions with outdated browsers. However, I found a few sites showing the message even with modern supported browsers (Safari 14).
Here is that supplier's statement on the subject:
https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
Older devices and/or their OS versions and/or browsers may not support technologies that the cert's replacement uses. To get a newer version of Safari usually requires upgrading to a newer macOS version, as you have found. And you cannot upgrade the model any farther.
BTW, I am getting that same advisory from WikiPedia when I use an old iPad running iOS 9.3.5, which is roughly contemporary with macOS El Capitan.
However, something to try first: If you are seeing that advisory in Safari or Chrome, try FireFox. I'm been told by trusted sources that FireFox handles certs differently from other browsers and sites with the expired cert may still work.
https://www.mozilla.org
However, even FireFox is giving up on El Capitan and will move you to their Extended Support Release (ESR) version which as of last July, is not as secure as the full version.
So it is either try FireFox ESR which, at least for now, still supports El Capitan, or shop for a new computer. In the long run, the handwriting is on the wall for the computer you now have.
The are other browsers but support for El Capitan is dropping like flies in an insecticide testing lab. You can search for mac browsers but very few support 10.11 any more.