Coming-out story (trope)
From Book Trigger Warnings
The "coming-out story trope" is when the story focuses on the protagonist questioning their sexuality and/or gender and comes out through the course of the novel. This trope is typically (but not exclusively) found in YA contemporary novels.
For a list of books on BTW with this trope, click here.