If i'm soloing over, say, Cmajor (Keeping it simple, for me) I just play any of the modes not for the specific chord tones, just for where I know the notes are on the neck. Not sure if this is the right way to do things but tbh I'm not even sure there is a 'right' way
Just thought to add, I never really solo properly