Example


if( localStorage.getItem('popState') != 'shown' ) {
	jQuery('#exampleModal').modal('toggle'); 
	localStorage.setItem('popState','shown')
}
<button type="button" class="text-center" data-toggle="modal" data-target="#exampleModal">Open Popup</button>

<div class="modal fade p_custom_popup" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
          <div class="modal-dialog" role="document">
            <div class="modal-content border-0 p-0">
              <div class="modal-header border-0">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                  <span aria-hidden="true">×</span>
                </button>
              </div>
              <div class="modal-body pt-0">
                <p>Get your products delivered by a nearby driver or schedule your order from our full menu</p>
  
              </div>
            </div>
          </div>
        </div>