Landing page renders differently for logged-in users and visitors

Your software
My Mautic version is: 5.0.4
My PHP version is: 8.1.27
My Database type and version is: 10.6.16-MariaDB-0ubuntu0.22.04.1

Your problem
My problem is:
The landing page builder renders differently in preview versus when the page is viewed by a logged-out user.

  • The preview rendering is correct.
  • The logged-out isn’t.

Previewed as an admin user:

Landing page viewed while being logged in as an admin user:

Landing page viewed when not logged into Mautic:

This is the code I see in the builder:

This is the template code:

<main class="px-4">
    <section data-section-wrapper="1" id="wrapper">
      <div data-section="1" id="page">
        <div data-slot-container="1" id="page-container">
            <div data-slot="text" id="page-container-slot">
                <h1>Lorem ipsum dolor sit amet</h1>
                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero. Vivamus pharetra posuere sapien.</p>
                <p>Nam consectetuer. Sed aliquam, nunc eget euismod ullamcorper, lectus nunc ullamcorper orci, fermentum bibendum enim nibh eget ipsum. Donec porttitor ligula eu dolor. Maecenas vitae nulla consequat libero cursus venenatis. Nam magna enim, accumsan eu, blandit sed, blandit a, eros.</p>
            </div>
        </div>
      </div>
    </section>
</main>

As you can see, the page’s HTML renders differenty.

These errors are showing in the log:
No errors.

Steps I have tried to fix the problem: