LONDON (Reuters) - Foreign secretary Boris Johnson warned there could be a Brexit meltdown but it will be “all right in the end” and said that U.S. President Trump would take a tougher stance were he leading the talks, according to BuzzFeed.

Johnson’s comments were secretly recorded at a dinner on Wednesday evening and released on Thursday by the news website, just hours after ministers found a compromise on a backstop Brexit plan for the Irish border.

Johnson said Prime Minister Theresa May was beginning to take a harder line but that there would be a need for level-headedness as talks became more difficult in the months ahead.

“I think Theresa is going to go into a phase where we are much more combative with Brussels,” Johnson was recorded saying.

“You’ve got to face the fact there may now be a meltdown OK? I don’t want anybody to panic during the meltdown. No panic. Pro bono publico, no bloody panic. It’s going to be all right in the end.”

Johnson said Trump, who is locked in a battle over metal tariffs with European allies including Britain, would take a stronger approach if he were in charge of the negotiations.

“Imagine Trump doing Brexit,” said Johnson.

“He’d go in bloody hard ... There’d be all sorts of breakdowns, all sorts of chaos. Everyone would think he’d gone mad. But actually you might get somewhere. It’s a very, very good thought.”

May reacted defiantly to Johnson’s comments, stressing that he was not the only one with strong views on Brexit.

“These are complex negotiations. Boris has strong views on Brexit but so do I,” she told Channel 4 news during an interview at the G7 summit in Canada.

Earlier a spokeswoman for May had said the Prime Minister has confidence in Johnson.

“The PM believes that her cabinet and her government are working hard to deliver on the will of the people and working hard to take back control of our money, laws and our borders,” she said.

Johnson also appeared to criticise finance minister Philip Hammond, who is regarded as one of the most pro-European members of May’s cabinet and has drawn criticism from eurosceptics.

The Treasury is “basically the heart of Remain” and is trying to stop Britain from having full freedom on trade policy after Brexit by keeping it tied to the EU’s customs union and to a large extent the single market, Johnson said according to BuzzFeed.

On Friday, Hammond said that a collaborative approach was better than a confrontational one in negotiations with the EU.