I'm not linking to sources because people feel the need to find the sources or they don't believe them. But there are a number of graphs of the numbers available on the Internet.
Suffice it to say that any adviser advising a presidential candidate to pay any attention to the deficit beyond lip service is doing that candidate a disservice, as voters have shown time and again that they simply do not care.
But Presidents typically take credit for their legislative wins, so we also give them credit for budgets they sign.
(It is also the case that one measure of the efficacy of an administration is the quality of the budgets they are able to coax out of Congress.)
The last president to attain a budget surplus was indeed a surprise for me.
[1]: https://www.investopedia.com/us-debt-by-president-dollar-and...
Largely speaking democrat administrations reduce the deficit while republican administrations increase the deficit, despite this being the polar opposite of political talking points.
I remember the budget hawks in the aughts saying that if the administration wanted to spend a ton of money on wars in Afghanistan and Iraq (this: unrelated to 9/11), that it would be fiscally prudent to raise tax revenue to cover the costs. Bush instead cut tax revenue substantially.
I'm not making a judgement either way, just saying that there was a choice here and Bush made the choice to increase the deficit. (Dick Cheney was correct when he advised Bush that deficits don't matter. The increase in the deficit indeed didn't matter to the electorate, and the deficit spending, in part via tax cuts, did win him a second term.)
How old are you? If you're a Gen-Xer you should remember Clinton's surpluses if you followed the news:
* https://www.brookings.edu/articles/a-surplus-if-we-can-keep-...
Then Bush got in (beating Gore by ~600 votes in Florida to take the Electoral College), and then did tax cuts and later war spending:
* https://en.wikipedia.org/wiki/Bush_tax_cuts
* https://www.cbpp.org/research/the-legacy-of-the-2001-and-200...
More recently, when the GOP controlled Congress and White House (Trump), they did a bunch of tax cuts: