How can I hide completely a panel in tablet mode

I’ll like to know if it is possible to hide completely a panel using plasma desktop scripting. The use case is to switch to different panel if user is in tablet mode or not…
(If not, the system tray eats all the available space when in portrait mode.)

Something like this worked before 5.27 : Hiding The KDE Panel