That will need to be done using custom JS code, and unforunately there is no one code you can use, as it must be customized for each case individually, if you go the page ready with all custom variants might be able to help with that code in here…
Still finding struggles? Please make sure you have finalized your checkout page with its variants then send it to us through Chat Support, and we will update the custom code for you.