Switching Genres

I have this idea for one of my projects where most of the story is written as if it is one genre, but then slowly is revealed to be the opposite by the end. I want to do this on purpose, but subtly to the point where the reader doesn’t notice the switch until they reread the story. (The project I have in mind is probably going to be a trilogy, FYI)

Has anyone done something similar before?

Any advice on how to go about it?

(Is this the right thread to post this in? Asking because I am currently word-scatterbrained and may have read the thread wrong. Apologies if I clutter the wrong page.)