Using Layout Builder, when you add a block to a layout that has access controls and a user visits a page without access, the layout is empty.
How does one prevent the layout from rendering at all if its contents are empty? While the {% if content.foo|render|striptags|trim %}
trick works for block templates, I can’t figure out how to get the same effect with layout templates.
The end result is I have extra markup in the page, which is classed and creating extra padding and vertical space between populated layout regions.