My phone does that for me. I use a habit tracker with undismissable notifications that take only a "Yes" or "No" answer (it's a bit more customizable, but this is how I use it), which helps keep me accountable for my habits.
Unfortunately, it's been almost 3 months for a habit that I'm trying to nail down and I still forget sometimes.
Loop Habit Tracker from F-Droid (Android only). It notifies me with a yes/no question about certain habits I'm trying to maintain. I set the notifications to come back immediately if swiped away without an answer. Keeps me accountable.