In the early Aughts, Republicans inherited a solid fiscal trajectory and then passed a couple of huge tax cuts that required future fixes. Then during Obama's presidency, Democrats partially repealed the "Bush cuts" and also added new revenue with the ACA (while bending the long-term healthcare cost curve) that mostly fixed the long-term debt trajectory. Then in 2017, Republicans passed another giveaway to rich people that again required some addition action to get the long-term situation under control. Then Democrats passed the IRA, which the CBO estimates will cut deficits by $238B over 10 years.
You can prefer either party or be totally indifferent to U.S. gov't, but it's factually not true that they're identical on debt (which is not the same as the economy--but they're very different on that too). Republicans have shown a much greater preference for deficit-funding.