A big part of it was like $5T in covid stimulus, most of which happened under Trump. Biden piled some more on, probably unnecessarily. It felt like we were balancing on a razor's edge and maybe starting to come out of it by the end of 2024. A lot of inflationary policies since then.
The biggest problems were various supply shocks associated with the pandemic and its aftermath and the Russian invasion of Ukraine.
The Biden admin brought down inflation much faster than even optimistic economists predicted, while maintaining full employment and avoiding a recession. The US economy during that period significantly outperformed most other wealthy countries. (As one indicative example, the cover story of The Economist from October 2024 was titled The American economy: The envy of the world.)
Since then we've had a wide range of completely self-inflicted policy faceplants, including notably several rounds of illegal tariffs and a war with Iran.