That can only happen if you do not use any health refills until you’ve […] cleared out all mines.
There’s actually a little bit more leeway than that: your first health refill needs to be when you have 11 hearts, and you can get to 11 hearts by clearing only the first 6 of the 9 mines.