With the rise of video conference calls, if you used that medium, that might have been a new way of communicating such a personal message.
Fortunately, you didn’t have to worry about your boss yelling at you: “Get out of my office, pack your things, and leave immediately!”
If and when, we get back into the office, taking the day off and using a video conference to put in your notice, could become the norm to ease the tension.