Hungarian Prime Minister Viktor Orban barely mentions his political rivals as he campaigns for a fourth term. Instead, he is targeting the European Union and its biggest members.

“Our fiercest opponents are not in Hungarian opposition parties,” Mr. Orban said in a speech last week. “They are abroad…Berlin. Brussels.”

In neighboring Poland,...