Senate Majority Leader Mitch McConnell told President Trump during their lunch on Monday that Steve Bannon’s war on the GOP establishment could wreck the White House’s legislative agenda, according to a report on Tuesday.

The Kentucky Republican emphasized during their private White House meeting that Bannon, the president’s former top strategist, was undercutting the administration by vowing to recruit candidates to run against incumbent Republican senators, some of whom support Trump’s goals, the Washington Examiner reported, citing sources.

At a Cabinet meeting before his lunch with McConnell, Trump said he could understand why his “friend” would be going after establishment Republicans.

“There are some Republicans, frankly, that should ashamed of themselves,” Trump told reporters, referring to how the effort to repeal ObamaCare failed in the Senate. “So I can understand fully how Steve Bannon feels.”

​But hours later during an impromptu news conference in the Rose Garden, Trump seemed to back off his full-throated support for Bannon’s election plans.

“Steve is doing what he thinks is the right thing,” Trump said​ with McConnell at his side​. “Some of the people that he may be looking at, I’m going to see if we talk him out of that because frankly they’re great people.”

A​t a meeting of conservative voters on Saturday, Bannon declared “it’s a season of war against a GOP establishment” and ​said he would support GOP candidates in the 2018 midterm elections who are loyal to Trump’s agenda on issues like tax reform.

Bannon, the head of Breitbart News, also singled out McConnell, saying “We’re going to cut off your oxygen, Mitch.”

Bannon has targeted Republican Sens. John Barrasso of Wyoming, Deb Fischer of Nebraska and Roger Wicker of Mississippi.

But the newspaper reported Barrasso and Wicker voted with Trump 96 percent of the time and Fischer went along with Trump 92 percent of the time.

GOP Sens. Jeff Flake of Arizona and Dean Heller of Nevada, also Bannon targets, voted for legislation to repeal ObamaCare, although Heller initially opposed it.

None of the five oppose Trump’s tax reform proposal, the report said.

McConnell said he would challenge Bannon’s agenda and will support candidates who can win.

“My goal, as the leader of the Republican Party in the Senate, is to keep us in the majority,” McConnell said. “So our operating approach will be to support our incumbents, and in open seats, to seek to help nominate people who can actually win in November.”