Brexit has divided the nation and contributed to historic levels of political polarisation ahead of the election.