Dutch Prime Minister Mark Rutte clashed with his main rival anti-Islam MP Geert Wilders on Monday, as they laid out starkly opposing visions of their country's future in an election campaign now consumed by a diplomatic row with Turkey.

Two days before Wednesday's crucial general election, The Netherlands is mired in a war of words with Turkish President Recep Tayyip Erdogan, which has provided fodder for Wilders and his uncompromising anti-immigration stance.

'You are being taken hostage by Erdogan. Close the Dutch borders,' Wilders told Rutte, as tempers flared in the 30-minute head-to-head televised debate.

Right-wing Dutch politician Geert Wilders (pictured) made the most of a fiery TV debate against Prime Minister Mark Rutte to sound off against Islam and the escalating tit-for-tat row with Turkey

'That's a totally fake solution,' Rutte shot back, 'you want Nexit, you want The Netherlands out of Europe. You know what it will cost ... don't do it.'

Wilders, who says he is on a mission against the 'Islamisation' of the country, has promised to shut Dutch borders to Muslim immigrants, close mosques and ban sales of the Koran.

He also wants to follow the British and pull the country out of the European Union which it helped found.

Polls suggest Wednesday's results could be close, with Rutte's Liberal VVD returning as the largest party in the 150-seat parliament by a whisker.

The elections are being closely watched as a signal of the possible rise of far-right and populist parties in Europe, with key elections also planned this year in France and Germany.

'I want The Netherlands to be the first country which stops this trend of the wrong sort of populism,' Rutte told reporters, just hours before the debate.

Monday's debate, plus Tuesday's vote-eve round-table with eight political party leaders, could yet sway the poll, with one analyst estimating some 60 percent of Dutch voters remain undecided.

Wilders has delighted in the chaos which erupted over the weekend when riot police moved in to disperse hundreds of protesters waving Turkish flags in Rotterdam, angered by a Dutch government ban on their ministers.

'You are being taken hostage by Erdogan. Close the Dutch borders,' Wilders told Rutte during the heated debate. Discussing the tit-for-tat row with Turkey, he added: 'We must answer back. We must expel the Turkish ambassador and his staff.'

Rutte appealed for calm, but he has rejected Turkey's calls to apologise for expelling one of its ministers who tried to attend the pro-Ankara rally in Rotterdam.

In one tense exchange, Rutte said it was time to de-escalate the crisis, but Wilders retorted: 'We must answer back. We must expel the Turkish ambassador and his staff.'

'There's the difference between tweeting from the sofa and running a country. If you are in charge of a country you need to take sensible measures,' Rutte replied, to loud applause, in a jab at the Dutch MP known for his love of Twitter.

The VVD is predicted to return as the largest party in the 150-seat parliament with between 23 to 27 seats, according to the latest aggregated polls.

Rutte (left) appealed for calm and called to de-escalate the feud with Turkish leaders who were barred from speaking at rallys in Holland this week following fears of heightened tensions

That is well down from the 40 VVD MPs in the outgoing lower chamber however, and would leave Rutte scrambling to cobble together a viable coalition which may have to include four or five parties to reach the 76-seat majority.

After weeks of flirting at the top of the polls, Wilders has seen his ratings slip and may now come second with between 19 and 23 seats, polls suggest.

But that would still leave him a difficult voice to ignore.

Rutte repeated his vow never to work with Wilders again, accusing him of causing problems for the country after the peroxide-haired MP triggered the collapse of an earlier coalition in 2012.

Rutte's liberal VVD party is predicted to return as the largest party in the 150-seat parliament with between 23 to 27 seats, according to the latest aggregated polls - however, despite a ratings slip - Wilder's is still expected to return with a strong hand of between 19 and 23 seats

Telling Wilders he had become 'radicalised' and was making 'extreme statements' about Moroccan-Dutch citizens, Rutte insisted: 'I will not cooperate with such a party. No, never, no.'

But Wilders retorted that he was standing up against 'the liars and the legislators' and urged Dutch voters 'if you want to take the Netherlands back for ourselves, then chase this man away and put me in the prime minister's office.'

There are 28 parties seeking to woo the 12.9 million eligible voters, and observers have warned that forming a coalition will likely take months and demand tough compromises.

Wilders' 'ideology might be negative, it's anti-Muslims, it's anti-EU, it's anti-immigration, it's anti-refugees. But it is a clear ideology that addresses concerns of a substantial group of the Dutch. So it is there to stay,' Monika Sie Dhian Ho, director of the Clingendael Institute said.