Donald Trump has used a rally in Phoenix to blast the "fake media" for misrepresenting his remarks over the violence in Charlottesville, condemning journalists as "truly dishonest people" who "don't like our country".

Back in his comfort zone among his supporters, the President claimed his response to the Virginia protests and counter-protests was "perfect".

Yet he then went on to read out portions of his various statements on Charlottesville from the past week, in which he condemned white supremacists, missing out the most controversial lines in which he said there was blame for the violence "on all sides".

In a rambling and wide-ranging speech also touching the issues of North Korea, Nafta and the Mexico border wall, Mr Trump provoked choruses of boos at his mention of the media, accusing journalists of warping his various Charlottesville statements by suggesting he was providing a platform for extremist groups.

Mr Trump opened the rally with a call for unity, saying: “What happened in Charlottesville strikes at the core of America and tonight, this entire arena stands united in forceful condemnation of the thugs that perpetrated hatred and violence.”

But he quickly trained his ire on the media, shouting that he “openly called for healing unity and love” in the immediate aftermath of Charlottesville and claiming the media had misrepresented him. He read from his three responses to the violence — getting more animated with each one.

Eventually moving on, he returned to the familiar theme of Democrats "obstructing" Republican legislation on healthcare and other bills, but also pushing the crowd to "speak to their senator".

Violence on the streets of Charlottesville Show all 9 1 /9 Violence on the streets of Charlottesville Violence on the streets of Charlottesville Protesters clash and several are injured White nationalist demonstrators clash with counter demonstrators at the entrance to Lee Park in Charlottesville, Virginia. A state of emergency is declared, August 12 2017 Violence on the streets of Charlottesville Trump supporters at the protest A white nationalist demonstrator walks into Lee Park in Charlottesville, Va., Saturday, Aug. 12, 2017. Hundreds of people chanted, threw punches, hurled water bottles and unleashed chemical sprays on each other Saturday after violence erupted at a white nationalist rally in Virginia. AP Photo Violence on the streets of Charlottesville State police stand ready in riot gear Virginia State Police cordon off an area around the site where a car ran into a group of protesters after a white nationalist rally in Charlottesville, Virginia AP Photo Violence on the streets of Charlottesville Militia armed with assault rifles White nationalists, neo-Nazis and members of the 'alt-right' with body armor and combat weapons evacuate comrades who were pepper sprayed after the 'Unite the Right' rally was declared a unlawful gathering by Virginia State Police. Militia members marched through the city earlier in the day, armed with assault rifles. Getty Images Violence on the streets of Charlottesville Statue of Confederate General Robert E Lee The statue of Confederate General Robert E. Lee stands behind a crowd of hundreds of white nationalists, neo-Nazis and members of the 'alt-right' during the 'Unite the Right' rally 12 August 2017 in Charlottesville, Virginia. They are protesting the removal of the statue from Emancipation Park in the city. Getty Images Violence on the streets of Charlottesville Racial tensions sparked the violence White nationalists, neo-Nazis and members of the 'alt-right' exchange insults with counter-protesters as they attempt to guard the entrance to Lee Park during the 'Unite the Right' rally Getty Violence on the streets of Charlottesville A car plows through protesters A vehicle drives into a group of protesters demonstrating against a white nationalist rally in Charlottesville, Virginia. The incident resulted in multiple injuries, some life-threatening, and one death. AP Photo Violence on the streets of Charlottesville Rescue personnel help injured people after a car ran into a large group of protesters after an white nationalist rally in Charlottesville, Virginia AP Photo Violence on the streets of Charlottesville President Donald Trump speaks about the ongoing situation in Charlottesville, Virginia from his golf club in Bedminster, New Jersey. He spoke about "loyalty" and "healing wounds" left by decades of racism.

Mr Trump spoke after Vice President Mike Pence and others called repeatedly for unity.

Housing Secretary Ben Carson and Dr Alveda King, the niece of civil rights activist Martin Luther King Jr, were among the openers. Franklin Graham, son of the evangelist Billy Graham, led the rally-goers in prayer, saying, “We're divided racially, and we're adrift morally.”

Outside the Phoenix convention centre, shouting matches and minor scuffles erupted between Trump supporters and some of the thousands of protesters gathered near the site of his latest campaign rally. Phoenix Mayor Greg Stanton had asked Mr Trump to delay his political event to allow for more time of national healing after Charlottesville.

Donald Trump blames both sides for Charlottesville violence

In the comfort of his most fervent fans, Mr Trump resurrected his free-wheeling 2016 campaign style, pinging insults at perceived enemies such as the media and meandering from topic to topic without a clear theme.

Neither of Arizona's two Republican senators appeared with Mr Trump. Republican Senator Jeff Flake, a conservative, has been a frequent target of Mr Trump's wrath.

The President tweeted last week: “Great to see that Dr Kelli Ward is running against Flake Jeff Flake, who is WEAK on borders, crime and a non-factor in Senate. He's toxic!” Flake has been on tour promoting his book that says the Republican Party's embrace of Mr Trump has left conservatism withering.

At the rally, Mr Trump said he would mention no names, but appeared to reference Mr Flake by again talking about a local Senator who is "weak on borders", adding that "nobody knows who he is".

Arizona's other senator, John McCain, is undergoing treatment for an aggressive form of brain cancer. Mr Trump has been critical of McCain for voting against a Republican health care bill.

The President also hailed what he framed as a possible improvement in relations with North Korea after months of mounting tension over its weapons programmes.

"I respect the fact that he is starting to respect us," he said of North Korean leader Kim Jong-un.

"And maybe - probably not, but maybe - something positive can come about."

On Mexico, Mr Trump accused Democrats of "putting America's safety at risk" with their opposition to his plan to dramatically increase security measures on the US's southern border.

He claimed immigration officers had told him a wall was "vital" and threatened to bring Washington to a halt if Congress opposed him, without providing specifics. "If we have to close down government, we are building that wall," he said.

And on trade, Mr Trump said he would "probably end up terminating Nafta", a proposed trade deal he has criticised in the past. That's despite the fact that representatives of the countries involved - the US, Canada and Mexico - are due to begin a new round of negotiations in a little over a week's time.

Tuesday's events put Mr Trump in more comfortable political territory than in recent days.

He began his Arizona visit with a brief trip to the southern edge of the country.

While touring a Marine Corps base in Yuma that is a hub of operations for the US Border Patrol, Trump inspected a drone and other border equipment on display in a hangar.