Run jQuery based on width

<script>

$(document).ready(function() {
    if($(window).width() >= 992) {
        $( ".p-detail-inner-header" ).insertBefore( ".type-product .p-final-price-wrapper" );
    }
});

</script>