App notification when HA is offline

I use Home Assistant mainly to run some automations in the background. Once in a while, something goes wrong and Home Assistant is offline. It can take several hours or days before I notice this.

Would it be possible for the Home Assistant app to show a notification when it can’t find home assistant?

This would need to be configurable of course to make it more user friendly.