Web page continuously refresh (black/white flash screen)

Hi when I load an asset with a web page like this: anfiteatro-01-slide – Digital Palace, screenly updates continuously without displaying anything. I once solved this problem by removing the LOOP php code from the wordpress page. But now I no longer remember how I did it. Has it happened to others? How did you solve? Thank you

I’ve found this LOOP code in page.php from Twenty Nineteen wordpress theme (very basic theme) :

<?php // Start the Loop. while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content/content', 'page' ); // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) { comments_template(); } endwhile; // End the loop. ?>

Can i try to delete it? I don’t need to visualize any post, only one image e one slide per pages.