Washington: Slightly more Europeans now view the United States unfavourably under President Donald Trump than favourably, according to a survey of public attitudes in three dozen countries that comes as Trump prepares for a return visit to the continent early next month.

The Pew Research Center survey released on Monday also found scant confidence outside the US in Trump’s leadership on the world stage, with many opposing his plans to build a wall along the US-Mexico border and withdraw the United States from international climate change and trade agreements.

Trump likely would be heartened by the fact that a majority said they see him as a strong leader, but that positive view was outweighed by even larger majorities who view the real estate developer and former reality TV star as arrogant, intolerant or dangerous.

Last year, a median of 61% held a favourable opinion of the US across France, Germany, Poland, Spain and the United Kingdom, compared with 26% who held unfavourable views.

Since Trump, who has held office for five months, opinion in these countries was 46% positive to 52% negative. The change marked the first time since the final year of George W. Bush’s presidency in 2008 that the public in these European countries has expressed more unfavourable than favourable views of the US, the survey found.

Bush’s ratings fell after the US invaded Iraq in 2003 and never fully recovered in some countries, where he was viewed as engaging in “cowboy diplomacy".

The shift in European attitudes was disclosed less than two weeks before Trump visits Poland and Germany after the 4 July holiday to meet with US allies and other leaders.

Trump’s first overseas trip as president last month took him to the West Asia and Belgium and Italy, where he lectured Nato allies about increasing their defence spending. He also disappointed European and other leaders by refusing to recommit to a landmark climate agreement that the US and other nations had agreed to in 2015.

Trump announced shortly after returning to Washington that he was withdrawing the US from the Paris climate pact.

The survey also found scant confidence outside the US in Trump’s ability to lead on the world stage, with fewer than 3 in 10 respondents, or 22%, expressing confidence.

Pew has produced the survey annually since 2002, during Bush’s first term. Monday’s edition is the first conducted since Trump took office in January.

According to the survey, a median of 22% across all 37 countries surveyed expressed confidence that Trump will do the right thing when it comes to international affairs. That means that if the results from each country are ranked in order, 22% is the midpoint, with the percentage expressing confidence in Trump falling above or below that point in equal numbers of countries.

The 22% rating also marks a steep drop from the closing years of Barack Obama’s presidency, when a median of 64% expressed confidence in Obama’s global leadership.

The results are based on telephone and face-to-face interviews conducted among 40,447 respondents in 37 countries in all regions of the world between 16 February and 8 May.

The survey found widespread disapproval of some of Trump’s major policies. The promised US-Mexico border wall is opposed by a median of 76% across all 37 countries, rising to 94% in Mexico.

More than 7 in 10 disagree with Trump’s proposals to pull the US out of a landmark climate change agreement and withdraw from multinational trade deals such as the Trans-Pacific Partnership. Trump has pulled the US out of both agreements, although the survey was conducted before his 2 June announcement on exiting the Paris climate accord.

More than 60% disapprove of Trump’s proposal for a temporary ban on people entering the US from six majority Muslim countries. More than half the respondents in four countries—Hungary, Israel, Poland and Russia—support the proposal. Opposition was strong in several largely Muslim countries, including Jordan, Lebanon and Senegal.

US courts had blocked two versions of Trump’s travel ban, but he won a partial victory Monday when the US Supreme Court said he could go forward with a limited version of the ban. The high court also agreed to hear arguments in the case in October. The ban applies to visitors from Iran, Libya, Somalia, Sudan, Syria and Yemen.