Anyone know if it's Possible to hide shipping based on variant download switch?

Is there anyone out there who is aware of a way to Hide or show the shipping section if a product is selected that has the “include download” switch switched on?

I have a digital and physical product in the variant section and am trying to turn on or off the shipping section depending on what is selected in the drop down menu. Is this not possible?

Hello,
I’m not sure, but it should be very easy to assign a value to each product,
“Require Shipping”

If not selected, any items in your cart would not have any shipping applied.

Regards,