Reading this, it looks like the Mail is using male pronouns for the time of the alleged offences. Then female ones once the person in question says they are now identifying as female. Styles is using "he", in evidence to the court.
www.dailymail.co.uk/news/article-10652365/Harry-Styles-accused-stalker-custody-allegations-investigated.html
I think that's what's happened here but wondered if I was reading it correctly.