I try to make myself be in the moment when this happens. Like I'll think or tell myself what I'm doing. Ok, I'm walking up the stairs or I'm taking a shower. Washing my hair, etc. You could try something like that. Or basically just try to go about your day and not focus on the derealization feeling.