"I don't know (if) that is what they voted for", he added.
The poll conducted this week said 63 percent found Trump racist, and 74 percent said he was sexist. Having to play nice with the person you don't have very much in common with, because it's the right thing to do.
May has said Trump's visit is an opportunity to boost trade links between the United States and the UK amid Britain leaving the European Union.
That matters because the government has been clinging to the idea of trade deals with countries outside the European Union as one of the benefits of Brexit, and claiming that the choice in the Chequers deal to stay close to the European Union doesn't exclude those opportunities.
"Brexit is Brexit, the people voted to break it up so I would imagine that is what they'll do, but they might take a different route, I'm not sure that's what people voted for", Trump said, adding: "They're great people - I just want them to be happy".
While he added that he thought Johnson would one day be a good candidate to lead the country, he insisted that he wasn't trying to put Johnson against May.
The US president did not have such glowing words for London Mayor Sadiq Khan, however. "As a politician I should not be the arbiter of what is good or bad taste". "The US ambassador himself commented that one thing U.S. and the United Kingdom have in common is freedom of speech and the idea of restricting that and right to assemble because someone is offended by something is slippery slope". "I would actually say that she probably went the opposite way". Yet, now that protesters are planning to fly a great big diapered Baby Trump blimp, he doesn't feel welcome anymore.
Earlier this week Mr Trump said it was "up to the people" whether the prime minister stayed on after two cabinet ministers resigned over her Brexit policy. Hundreds of protesters descended on the castle to voice their opposition to the president's visit.
Some signs at Thursday's protests condemned Trump's immigration policy, demonstrating the global outrage he has drawn for separating families at the U.S. -Mexico border and imprisoning children and babies away from their parents. Although Trump has said this practice will be stopped, thousands of children remain separated from their parents and face great difficulty locating their relatives. "What is interesting is Trump is not criticising mayors of those cities but he is criticising me", he said in an interview on the BBC Today programme. "I think that's why Brexit happened".
Then, in a head-snapping pivot at the end, he declared the alliance a "fine-tuned machine" that had acceded to his demands to speed up increases in military spending to relieve pressure on the US budget.
As the Trumps dined with the Mays, protests in the British capital took place outside Winfield House, the residence of US Ambassador Woody Johnson. Melania Trump has heard about the plans and isn't excited about her husband's presidency being see as a 'joke'.
Police estimated there were about 1,000 people demonstrating near the palace, the birthplace of wartime Prime Minister Winston Churchill.
"I think allowing millions and millions of people to come into Europe is very, very sad", he said.
The Sun is no stranger to publishing controversial material.