There are people who feel like they are "genderfluid" meaning they sometimes feel one way about their gender and sometimes feel another.
Most people who are transgender stay that way, but it can seem to go away when things are distracting you, so that you don't notice it. Then it seems to come back, because you're no longer distracted.