Funny - I just posted the same question / worry (April 2024) and it was immediately blocked because the question already existed (this one).
Apparently nothing came from this in the past 3+ years, and it feels pointless to even add my answer now - three years after it was asked, instantly buried under dozens of other answers that already got loads of up votes: even if my answer is going to be the best (lets assume it is, because -say- I'm just that much more brilliant) then it will get lost already because I'm not adding it while this question was "hot": answers and their up-votes from the first day or two after a question is posted always blow later answers out of the water (which is the whole problem that we're dealing with here).
My question was specifically about C++ questions and outdated answers. C++ has tags that include the version of C++.
My solution for languages with version tags, like C++, would be to have an A.I. tag all answers with the version of C++ that is being used - and then allow users to sort by that tag: the latest C++ version first, then the next etc. And then allow another ordering within each version (either highest up votes, or newest answer - just like we can do now).
For example, I'd set the sorting/filtering to show C++20 at the top, then C++17, then C++11, each sorted by number of upvotes. While currently I am forced to simply sort by newest answer, ignoring the up votes thus, in order to find if there are any C++20 specific answers.