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