An anti-establishment Republican backed by Donald Trump and a black Democrat endorsed by Bernie Sanders will face each other in Florida's gubernatorial election in November.

The race, in the country's biggest swing state, is a sign of the increasing polarisation among voters during the Trump administration with sharp divides over issues like immigration, the environment and health care.

Florida is the country's third most populous state after California and Texas and will be a decisive vote in the next presidential election, where the US president won by just one percentage point in 2016.

The result of its governor's race in this year's midterm elections will be a temperature test for voters' attitudes ahead of the 2020 presidential vote. President Trump's pick, congressman Ron DeSantis, beat the establishment favourite Adam Putnam in Tuesday night's primary for the Republican nomination.

The three-term congressman, who makes frequent Fox News appearances, is known as an immigration hard-liner in a state where Hispanic voters hold a large sway.

Mr DeSantis campaigned on a pro-Trump platform and in one campaign advert encourages his toddler to “build the wall” with toy blocks - a nod to Mr Trump's planned border wall with Mexico.