I deactivated everything in staging except these plugins and activated the parent theme.
I deleted all custom CSS and reset performance settings. Unfortunately the error is still there. You can do whatever you want in staging and testing. The installation is synchronized every 24 hours.
I found the mistake. That’s because of the header. If Hidden Sidebar is also active on mobile header, then it works on desktop too. But I only want this function on the desktop.