Reorder WooCommerce product summary for mobile only

so I know how to reorder the summary information in WooCommerce. But let's say I want to reorder the elements only on the mobile, any ideas? I've been stuck for the past 2 days and I have no idea how to execute this.

remove_action (& # 39; woocommerce_single_product_summary & # 39 ;, & # 39; woocommerce_template_single_rating & # 39 ;, 10);
add_action (& # 39; woocommerce_single_product_summary & # 39 ;, & # 39; woocommerce_template_single_rating & # 39 ;, 50);