<?php
get_header();
if (have_posts()):
    while (have_posts()):
        the_post();
        $account_page_id = get_option('woocommerce_myaccount_page_id');
        if (!is_page($account_page_id)): ?>
            <div class="container">
                <?php
                the_content();
                ?>
            </div>
            <?php
        else:
            the_content();
        endif;
    endwhile;
endif;
get_footer();