Open this photo in gallery:

U.S. President Donald Trump welcomes then-Hungarian prime minister Viktor Orban to the White House in May 2019.Manuel Balce Ceneta/The Associated Press

First came Hungary, then Serbia, and now voters in the United States have turned their backs on an out-of-touch populist leader who built his political career on relentless negative campaigning.

While the political landscape in each country differs, all three have had elections that turned into referendums on their leaders – Donald Trump, Viktor Orban in Hungary and Serbia’s Aleksandar Vucic. And the resounding results demonstrated the limits of fearmongering and attack ads.

“There is definitely a place where the propaganda and the negative campaigning become so ridiculous that it completely undermines the trustworthiness of the messenger,” said Alexander Bor, a post-doctoral researcher at the Central European University in Budapest. “People are less credulous than we often assume and they have this ability to discern when they are being taken advantage of.”

Mr. Orban’s Fidesz Party was swept from power last April after 16 years of increasingly authoritarian rule. The party had built an enormous propaganda machine by taking control of almost every media outlet and using taxpayer money for political promotion. During the April election, Fidesz used its overwhelming advantage to attack the opposition Tisza party and raise fears about the European Union dragging Hungary into the war in Ukraine.

Editorial: Viktor Orbán’s defeat is a roadmap to beating Donald Trump

Last month, Mr. Vucic’s Serbian Progressive Party, SNS, was defeated in a snap election that ended his 14 years of similar authoritarian leanings. The SNS also relied on propaganda and disinformation tactics to discredit a student-led opposition movement. Mr. Vucic cast his opponents as foreign-paid agents who would sell out the country, ruin the economy and steal public money.

Both men put themselves at the centre of their campaigns and patterned their political style after Mr. Trump.

Mr. Trump’s MAGA movement provided support for Mr. Vucic and planned a conference in Belgrade this month. And U.S. Vice-President JD Vance campaigned for Mr. Orban last April.

But like Mr. Trump, Mr. Vucic and Mr. Orban badly misread the public discontentment that had been building over corruption and a lack of economic opportunities.

Shortly after the Hungarian election, researcher Gergely Romsics said the result raised important questions about the effectiveness of propaganda.

“Is there a natural ceiling to how societies react to these kinds of onslaughts and propaganda?” said Dr. Romsics, an associate professor of humanities at ELTE University, Budapest. “Does it devalue itself over time and with increasing intensity? Is it just not a case of diminishing returns, but actually negative returns?”

Andrew Coyne: U.S. midterms are a rebuke to the Republicans, but not the wipeout they deserved

The same questions could be asked after the Democrats’ sweeping victory in Tuesday’s midterms in the U.S.

The party did far better than expected despite being vastly outspent by the Republicans and their aligned groups. Most of the extra spending went toward negative advertising, which has become ubiquitous in U.S. elections.

Experts have long debated the effectiveness of attack ads. Like the propaganda and fearmongering in Hungary and Serbia, these ads drew attention but it’s unclear how many votes they swayed.

“We know that it cuts through and folks remember the negative information from ads they hear. But there is little historical evidence that it will shift an actual vote from one party column to the other,” said Melissa K. Miller, a professor of political science at Bowling Green State University in Bowling Green, Ohio.

Dr. Miller said one ad by Republican gubernatorial candidate Vivek Ramaswamy against his Democratic opponent Amy Acton in Ohio was particularly controversial. The ad featured Dr. Acton’s estranged mother calling her daughter a liar. Dr. Acton suffered childhood sexual abuse by her stepfather, who fled the state and later died after being indicted.

Six takeaways from Democrats’ resounding midterm sweep

The ad was widely criticized, and Dr. Acton won the election. “Was Ramaswamy’s ad the decisive factor? We’ll never know with certainty,” Dr. Miller said. “But we do now know how far is too far when it comes to negative advertising. Exhibit A is the Ramaswamy ad that backfired.”

Like Mr. Orban and Mr. Vucic, Mr. Trump also put himself and his record at the centre of the campaign, and he often ignored voters’ concerns. And just like in Hungary and Serbia, American voters came out in high numbers to turn Republicans out of office.

Dr. Bor said the three elections showed “that when Orban and Vucic and Trump are popular, their supporters are willing to endorse and repeat a lot of ridiculously sounding narratives.” But when the leaders fail to perform, “people just stop paying too much attention to the top-down narrative of the government and vote against it.”

Alina Rocha Menocal, a senior research associate at the London-based ODI Global think tank, said the decisive result in all three elections also left little room for conspiracy theories or challenges to the legitimacy of the vote. Mr. Orban and Mr. Vucic conceded on election night, and Mr. Trump has not, so far, invoked the same allegations of fraud he has raised in previous elections.

“It’s interesting that the victories are so resounding that there’s no amount of narrative that you can invent here about the elections being stolen,” Ms. Menocal said. “That’s also very encouraging.”