Habits operate along a cue, routine, and reward. In order to change a habit, you want to deliver the same reward while changing the routine to a cue1,2.
References
1.
Duke, A. Thinking in Bets: Making Smarter Decisions When You Don’t Have All the Facts. (Portfolio, 2019).