MAGA is a religion
You are nearly there. The decline of religion is replaced by political ideology. Religion has traditionally provided community and a sense of belonging and purpose. Since the advent of scientific revolution, religion has been steadily been declining. Coupled that with the growing individualism, since the promulgation of liberalism, and we have people feeling alienated and purposeless. The scientific revolution and individualist priorities atomised what was once communities and now there are only individuals left to fend for themselves. These vulnerable individuals are easy prey for demagogues who promise to bring back that sense of belonging and togetherness. It is not a coincidence that many rural areas are MAGA and religion is still alive and well. And what's the main characteristic of rural countries? Its loneliness. Hannah Arendt made an insightful conclusion that loneliness is a precursor to totalitarianism.
The extremely liberal and individualistic values that happened in 19th century giving rise to collectivist totalitarianism is repeating again and we haven't learned. Even a lot of Lemmy users don't get this and scoff at the "deplorables", wondering why the poor voted for Trump. He offered a sense of belonging to the poor and alienated, which both centrist Democrats and Republicans abandoned long ago.