Iphone 7/8

<div class="my-articles cols-<?php echo $liczba_column ?>">
<?php for ( $i=1 ; $i <= $liczba_column; $i++ ) : ?>
    <div>
    <?php $counter = $liczba_column + 1 - $i; ?>
    <?php while ( have_posts() ) : the_post(); ?>
        <?php if ($counter % $liczba_column == 0) : ?>
            <?php get_template_part( 'content', get_post_format() ); ?>
        <?php endif; ?>
        <?php $counter++; ?>
    <?php endwhile; ?>
    </div>
<?php endfor; ?>
</div>