Secret identity (trope)
From Book Trigger Warnings
The Secret identity trope is where one or more characters keep their full actions a secret, usually involving an alter ego. This Trope is commonly used in Superhero and Spy stories.
Notable Examples
Renegades by Marissa Meyer Pretty Little Liars by Sara Shepard