Different custom fields based on selected variants - Dawn Theme

Hi, I created custom fields on the product pages. However, these custom fields are the same across all the variants under the product. Is there a way to display custom fields based on which variant is selected?

For example:

under variant 1, a customized dropdown form displays

when switched to variant 2, a file upload field displays

etc…