Maybe have a planning for the entire week where you have to do X at a precise time and tick tasks done, stuff like that.
To feel like you have a goal and to feel like you did all your tasks successfully by the end of the week.
The way I changed this bad habit was by having a planning with an hour or less per day for stuff I didn't want to do.
Then it became an habit and simply know that I have to do X at a certain hour and I just do