I think Trump mostly happened to be in the right place at the right time.
Notice how many countries had the then opposition party win (or come much closer than usual) around 2023-2025. It didn't matter which side they were on, Poland went right -> center-left for example, so did the UK.
People in 2024-ish were very unhappy about their economic situation (which was mostly caused by pandemic disruptions, with the war in Ukraine not helping things), but was usually attributed to whoever was in power at the time. In the US, that happened to be the democrats, so that's whom people blamed.
This gave the GOP a trump card (no pun intended) which they played reasonably well. I think the Democrats could perhaps have made some hay there (by focusing on "evil capitalists" causing "fakeflation"), but the Republicans automatically started from a position of strength by not being in power at the time that particular disaster happened. Even so, the DEM focused mostly on race and not economics, which was a bad play at the time.