My strategy works great in trending markets but gets chopped to pieces in ranging markets. How do you adapt?

Been running the same momentum strategy for months and it crushes trending moves but sideways action just kills me with false breakouts.

Do you switch strategies completely when markets start ranging or just dial back position sizes until the trend resumes?