I have also struggled with the same problem for a long time. However, what helped me the most to get over this was to understand how habits work. And for that, I can recommend the book "The Power of Habit" by Charles Duhigg (a good summary can be found here [1]).
The most important insight for me was: It is not possible to train a new habit out of thin air. You always have to change an existing (bad) habit.
Simply put, a habit works in three steps: (1) A cue gets triggered; (2) a routine gets performed and (3) in the end, we are getting a reward.
Let's take the (bad) habit of reaching for our cell phone in the morning after waking up. The cue here is that we have just spent 8 hours outside of any information flow and now feel we need to catch up. So then we start the routine and reach for our cell phone. And the supposed reward now is that we think that we are better informed afterward. But that's mostly not the case because, after hours of doom scrolling every day, we instead feel like wasting our time.
The idea now is that we keep the cue, switch out the routine, and experiment a bit with the reward. So in your meditation example, instead of reaching for the cell phone, we could start a 10-minute meditation while still lying in bed. Now the reward could come from recognizing that the behavior makes us feel better. Since we already internalized the cue, we can't forget the new habit.
(What I have described here is, of course, very abstract and must be seen individually and requires continuous training.)
What could also help would be to simplify the routine. You wrote that you want to meditate for 10 minutes every day. As a start, it may make more sense to set a goal to "meditate regularly." I once set myself the goal to read for at least 30 minutes every day. But as life is, there is not always the possibility to take 30 minutes at a time. And then I started to skip the new habit. I have changed that I also try to read in short free moments and not in a fixed setting. For example, if I brush my teeth for 3 minutes, I can read 1/2 page in the meantime.
[1] https://medium.com/@aidanhornsby/notes-on-the-power-of-habit...