I suggested something a while ago that works if Kirby and the Panel themselves are not in maintenance mode due to updates:
site.php would be site.yml now. Instead of the page, I’d use a route, but that’s up to you. The advantage of using a page is that you can edit the content of that maintenance page in the Panel.