A town mayor who said British Prime Minister Boris Johnson "completely deserves this" after he was hospitalised with COVID-19 has lost her job at a law firm.

Sheila Oakes, who is mayor of Heanor in Derbyshire and a district councillor, posted the comment on Facebook on Monday night.

Sheila Oakes, the mayor of Heanor in Derbyshire, has lost her job after saying UK Prime Minister Boris Johnson 'deserves' being hospitalised for coronavirus symptoms. (Amber Valley Borough Council)

Replying to a message calling for people to say a prayer for the prime minister, she wrote: "Sorry, he completely deserves this and he is one of the worst PMs we've ever had."

Oakes, who sits on Amber Valley District Council representing the Heanor East ward, later apologised after her remarks attracted a storm of criticism, saying "I made a mistake".

Following her comments, Amber Valley Labour group withdrew the party whip from the councillor, saying a "full investigation" would take place in due course.

Oakes' remarks have also now cost her her job at solicitors VHS Fletchers, where she had been working as a paralegal.

The law firm said it had taken "swift and decisive action" after becoming "embroiled" in the row.

In a statement, Oakes' former employer said: "On Monday evening Sheila Oakes, a paralegal at our Ilkeston office and also Mayor of Heanor posted deeply offensive remarks relating to the prime minister's current state of health on Facebook.

The British Prime Minister has spent three nights in a London hospital for persistent coronavirus symptoms. (Getty)

"These posts were made in a personal capacity, but it was clear from her Facebook biog that she was an employee of this firm, and as a result we became embroiled in understandable and legitimate criticism of what she had said.

"We can confirm that as of now Ms Oakes is no longer employed by this firm in any capacity."

The statement added that Oakes' stated views were "not shared by the partners or any other members of staff".

"To wish illness upon anyone must be abhorrent to all right thinking members of the public," the firm said.

"We are acutely aware of the distress that such posts can cause, both to the family and friends of the prime minister, but also to all of those affected by this terrible virus."

For breaking news alerts and livestreams straight to your smartphone sign up to the 9News app and set notifications to on at the App Store or Google Play.

You can also get up-to-date information from the Federal Government's Coronavirus Australia app, available on the App Store , Google Play and the Government's WhatsApp channel .