Help with visibility please

In the main mixer window, I colour code the tracks and hide the ones I don’t need to see, then save.
If I switch between projects this does not work sometimes, so the hidden tracks are back and the colour coding has reverted to grey.
It appears an intermittent thing, not every time.
It’s a pain in the arse, does anyone know what’s going on?