Make toolbar fullwidth panel

I have a panel with cover effect, it’s visible on the page breakpoint and on mobile it becames a overlay panel. My problem is to make the toolbar of the page fullwidth.
.
.

Toolbar in your DOM must be on same level as Panel and have larger z-index

i have toolbar like that, in App.jsx so it will be globally visible. Am I doing right?