I'm using the j51 enlighten template on joomla 4.1.5. I used Migrate Me to upgrade from Joomla 3 to 4 then uninstalled the enlgihten template for 3 and reinstalled the one for joomla 4. My issue is then when not in debug mode, actual site content disappears that appears properly when the site is in debug mode (in the configuration.php file). Specifically, anywhere there's a collection of divs with class 'module', they are supposed to display within their container one after another. That happens correctly when in debug mode but when I turn debug mode off only the top 'module' div is displayed. The others are still present in the html but they are hidden underneath the one on top which now has a height that takes up the whole parent container.
This picture shows the side bar of my member home page when in debug mode. You can see that both main sections are displayed.
This is what happens when I turn debug mode off. Now only the 'Summer Hours' box appears.
I'm sure there's a css tweak to make that could fix this but that doesn't seem like the right solution here. It just shouldn't be possible for turning a debug mode on or off to change anything that isn't debug-related content.