Quote from the BBC article:
A Conservative Parliamentary candidate has resigned after it emerged he made controversial comments about transgender people and migrants during a school debate.
Nick Rose was set to contest the Norwich North seat at the next general election, having been selected by members of the Norwich Conservative Federation on 29 October.
On Tuesday, an education trust lodged a complaint against Mr Rose.
...
In a video posted online... he appeared to say: "A bloke wearing a dress who identifies as a woman should be in a male prison [and] should not be allowed in women's toilets. For goodness sake.
"How on earth, all of you ladies here, can allow a bloke in a dress to come into your loos? It's disgusting."
He also made comments about migrants entering the UK illegally, describing their arrival as an "invasion".
In response, Don Evans, chief executive of the Broad Horizons Education Trust, which runs the school, said: "We do not feel those comments were appropriate to be aired in a school environment in the manner he chose to do so, as they conflict with the inclusive environment of the school community and are at odds with the content of the school's curriculum.
"Whilst we fully support the principle that our students should experience a broad range of views and opinions, we cannot allow our schools to become a platform for views that are fundamentally incompatible with our approach and ethos."