Donald Trump. Pool/Getty Images

President Donald Trump's recent tweets about the London terror attack and his administration's controversial "travel ban" have increased the perception that he is going rogue and undermining his team along the way.

Trump started off Monday morning by blasting the Department of Justice for watering down his executive order temporarily banning travel from some majority-Muslim countries.

"The Justice Dept. should have stayed with the original Travel Ban, not the watered down, politically correct version they submitted to S.C.," he tweeted, referring to the Supreme Court.

After several more tweets on the travel ban, he pivoted to criticizing London's mayor over his handling of the terror attack there on Saturday.

"Pathetic excuse by London Mayor Sadiq Khan who had to think fast on his 'no reason to be alarmed' statement," Trump tweeted.

News outlets pointed out that Trump seemed to have misconstrued Khan's statement, which urged Londoners not to be alarmed by the increased police presence around the city in response to the attack. Seven people were killed and 48 others were injured after three men rammed a van into pedestrians and subsequently went on a stabbing spree. The terrorist group ISIS claimed responsibility for the attack.

Trump's Monday morning tweets created new controversy, undermined his Justice Department, and took attention away from his administration's planned "infrastructure week," supposed to showcase an important part of the president's agenda amid the public testimony on Thursday of James Comey, the FBI director Trump fired last month.

Instead of focusing on Trump's infrastructure plans, the White House on Monday was forced to address his latest tweets. In an interview with NBC's "Today," White House counselor Kellyanne Conway, who has promoted the president's use of Twitter, said the news media had an "obsession with covering everything he says on Twitter and very little what he does as president."

But Trump's inflammatory tweets often draw backlash — sometimes from their subjects — which leads to more headlines and questions from reporters.

Trump first criticized Khan on Sunday.

"At least 7 dead and 48 wounded in terror attack and Mayor of London says there is 'no reason to be alarmed!'" Trump wrote.

The tweet was a sharp turn from Trump's earlier tweet in which he promised Britain the US would "be there" and do "whatever" to help.

Khan's staff called the tweet "ill-informed" and said the mayor did not have time to respond, which triggered Trump's Monday morning tweet.

Meanwhile, the US embassy in London felt it was necessary to contradict Trump and praise Khan's leadership.

"I commend the strong leadership of the @MayorofLondon as he leads the city forward after this heinous attack," Lewis Lukens, an appointee of President Barack Obama's who is serving as the interim leader of the embassy, tweeted Sunday.

Trump also might have created headaches for his administration with his travel-ban tweets.

In upholding a nationwide block of the executive order, the 4th US Circuit Court of Appeals last month said it "drips with religious intolerance, animus, and discrimination."

But Trump seemed to suggest the current, revised ban didn't go far enough. The initial order introduced by the Trump administration, which did not make clear that existing visa holders could enter the US and also included Iraq on the list of banned countries, was withdrawn after it, too, was blocked by the courts.

The Department of Justice appealed last week to the Supreme Court to review the legality of the revised order.

"The Justice Dept. should ask for an expedited hearing of the watered down Travel Ban before the Supreme Court — & seek much tougher version!" Trump tweeted Monday.

The tweets could cause problems in court, as the Justice Department has tried to distance itself from the original order in defending the new one. Trump has already seen his past statements, and those of his surrogates, used against him in court, particularly his call in December 2015 for barring all Muslims from entering the US.

The Justice Department lawyers defending the order have repeatedly asked judges not to consider Trump's statements when ruling on its legality, but to instead focus on the text of the document — a strategy that has not proved effective.

"In any event we are EXTREME VETTING people coming into the U.S. in order to help keep our country safe," Trump tweeted Monday. "The courts are slow and political!"

George Conway, Kellyanne's husband, who recently withdrew from consideration for a top job at the Justice Department, tweeted Monday that the president's tweets hurt his cause.

"These tweets may make some ppl feel better, but they certainly won't help OSG get 5 votes in SCOTUS, which is what actually matters," he wrote, referring to the Office of the Solicitor General. "Sad."

These aren't the only recent instances of Trump falling out of sync with his administration.

Politico reported Monday that Trump's national-security team was "blindsided" by Trump not explicitly endorsing Article 5 of NATO during a speech to NATO leaders last month in Europe.

According to Politico, the text of the speech Trump was set to deliver included an endorsement of Article 5, which states that an attack on one NATO nation is considered an attack on all. But Trump did not discuss it in his speech, instead opting to focus on lecturing representatives on the need to increase defense spending.

Defense Secretary Jim Mattis, national security adviser H.R. McMaster, and Secretary of State Rex Tillerson reportedly worked for weeks with Trump to nail down the NATO speech, with each pushing for the endorsement's inclusion after noticing it had been removed in later drafts.

"There was a fully coordinated other speech everybody else had worked on" — and it wasn't the one Trump gave, a White House official told Politico.

Trump's continued undermining of his staff has led to rumors of a bigger White House shakeup to come.

After Comey's firing last month, multiple outlets reported that a staff shakeup was coming and that Trump was not pleased with his communications staff and its messaging. Trump even tweeted after contradicting his administration's rationale for the firing that his surrogates couldn't speak for him "with perfect accuracy."

"As a very active President with lots of things happening, it is not possible for my surrogates to stand at podium with perfect accuracy!" Trump tweeted, adding in a subsequent tweet: "Maybe the best thing to do would be to cancel all future 'press briefings' and hand out written responses for the sake of accuracy???"

But in the weeks since those reports, the only person who has left a top White House job is Mike Dubke, the communications director.

Trump's tendency to go rogue, which has amplified in recent weeks, might make such a shakeup impossible.

Politico reported Monday that Reince Priebus, Trump's chief of staff, who is routinely mentioned as being on the chopping block, remains in place because of "his greatest job security": that "there are few takers for what might be an unworkable gig."

With Trump's decision-making often splitting from that of his team, Priebus is left with little power, according to Politico.

"He stays in the office until late at night and often toils away on the weekend with little control over what ultimately happens," the report said.