President Trump on Sunday publicly slammed Vice President JD Vance for his scathing midterms rant that blamed the war in Iran for Republicans’ major Election Day losses.

When asked if Vance’s public midterm elections post-mortem impacted Trump’s relationship with his second in command, Trump admitted that “a lot of people didn’t like his comments.”

“No, not at all, but a lot of people didn’t like his comments, but not me,” the president told reporters before boarding Air Force One in West Palm Beach, Florida.

“He was right. Other than one thing. He should have made one other statement, one which I think is very important. If you had it to do again, would you do it again? The answer is yes,” Trump said.

“This, historically, for history will go down as one of the best things we ever did because if they [Iran] ever had a nuclear weapon, they would blow up the world. You know why? Cause they’re crazy,” he added.

Vance decried the GOP “establishment” in a 618-word post on X on Wednesday after Democrats seized control of both chambers of Congress and a majority of state governorships.

“The reason we lost is the war. The president himself said so last night. If you’d like to argue it was worth it, that losing the Senate for the next 6 years was worth it, then do so,” he wrote.

“But everyone knows why we lost. And any honest conversation about where we go from here must start there. I remain hopeful about our country,” Vance said.

“To the people who are pissed off and want to say, “I told you so”: you’re right, you did tell us so.”

A Trump aide previously told The Post that the president was “briefed beforehand” on Vance’s statement and “did not have any issues with it.”

The White House retweeted Vance and Trump partially endorsed the appraisal, telling reporters, “I thought it was good.”

In a CBS “60 Minutes” interview that aired Sunday, Trump appeared to sympathize with Vance’s remarks, admitting some voters “didn’t like the war.”

“They didn’t like the war. They didn’t like the fact that gasoline went up, ’cause I had it down at a low,” Trump told correspondent Ross Douthat.

“And they didn’t like the war, I think mostly for that reason because I think everyone agrees that Iran cannot have a nuclear weapon. And they will never have a nuclear weapon,” Trump said.

“The one thing he left out is… that I would say, and maybe he wouldn’t say it, I don’t know. I’ve never asked him really, but… if you had it to do again, would you do it? And that’s Iran. Would you go and ta… attack Iran and take away their… ’cause we won that war,” Trump doubled down while speaking about Vance’s remarks.

“That war has been won. Now they’re withering away as a country, and they’ll come, and they’ll make a deal.”

Share.