The first thing to do is discover if there are local groomers or influencers—at school or elsewhere—influencing your child.
In some cases moving away from that person or people can resolve the issue.
I have a niece that was gay in high school. Graduated and got out of that viper's next, found a decent guy and is probably going to marry him.