The Government's response to Donald Trump's cancellation of a visit to Britain descended into chaos as Boris Johnson accused Sadiq Khan of endangering relations with the United States.

Downing Street was unable to say whether the Foreign Secretary spoke for the Government when he said the London Mayor and Jeremy Corbyn were putting the "crucial relationship at risk", and accused Mr Khan of being a "puffed up pompous popinjay".

A Number 10 spokesman insisted the "strong and deep" partnership between the UK and US "will endure" despite Mr Trump revealing in a trademark tweet that he had cancelled plans to open the new American embassy in London.

Trump has "got the message" that many Londoners are staunchly opposed to his policies and actions, mayor Sadiq Khan said after the US president cancelled his planned visit.

The London mayor - who has clashed with the president in the past - said a visit by Mr Trump would have been met by "mass peaceful protests".

File photo dated 28/02/17 of Foreign Secretary Boris Johnson, as the Conservatives denied that Mr Johnson is being sidelined from the party's General Election campaign by Prime Minister Theresa May. PRESS ASSOCIATION Photo. Issue date: Wednesday April 26, 2017. Reports have suggested the Foreign Secretary has been told to keep a low profile because he is vulnerable to challenge over his pre-referendum claims that Brexit would deliver £350 million a week to spend on the NHS. See PA story ELECTION Johnson. Photo credit should read: Victoria Jones/PA Wire

The US president confirmed on Twitter that he would not visit the UK to cut the ribbon on the new US embassy building in south London.

Mr Trump said he thought the embassy's move from Grosvenor Square in Mayfair to Nine Elms, south of the Thames, was a "bad deal" and the building was in an "off location".

But the prospect of demonstrations against his appearance could also have been a factor in the president's decision to cancel the visit.

Mr Khan said: "It appears that President Trump got the message from the many Londoners who love and admire America and Americans but find his policies and actions the polar opposite of our city's values of inclusion, diversity and tolerance.

"His visit next month would without doubt have been met by mass peaceful protests.

"This just reinforces what a mistake it was for Theresa May to rush and extend an invitation of a state visit in the first place.

"Let's hope that Donald Trump also revisits the pursuit of his divisive agenda."

Mr Khan, who has led opposition to the prospect of a visit by the US president, had a row with Mr Trump over the response to the London Bridge terror attack last June.

President Trump fired off a series of critical tweets over Mr Khan's handling of the attack, mocking the mayor's comments that there was "no reason to be alarmed" over armed police on the streets.

The row between Mr Trump and Mr Khan saw the US president dismiss criticism of his original post on the subject by redoubling his attack, accusing Mr Khan of making a "pathetic excuse".