Education is the obvious fix, but at least in America, the idiots are trying to destroy it. If people learned critical thinking, almost everything else would fall into place. If we stopped reinforcing learned helplessness and made people practice logic and learn consequences, society would see a huge benefit. People need to be held accountable for their ignorance. Otherwise, they won't learn. Those who refuse to learn should rightfully be shunned, because they're the biggest propaganda weapon out there.
Cognitive dissonance is another major reason for idiocracy. The MAGAts are so blatant about their love for it. "Wokeness" is healing from cognitive dissonance, which they've labeled as a virus.
I'm sympathetic and offer to help someone if they're being a bit stupid (all of us have our moments), but if they refuse, that's where they should be held accountable.