Both movements reemerging are a consequence of the increasing wealth inequality that is created by capitalism reachinhg a boiling point. I don't think we are quite there yet.
What we see today in Trump is just a clown trying to fix the economy with completely inappropriate tools and keep the status quo of the power of the capitalist class as best as he can.
Mamdani may call himself a democratic socialist, but his policies are mild forms of social democratic reforms, which are essentially small fixes to capitalism to make it more palatable to the population.
But this will obviously change as the wealty inequality rapidly gets worse and living conditions even for the "middle class" get ever more challenging.
