Workout builder

This wholly depends on what is your destination app / program / trainer that you are using.

For Zwift: You can use FreeRide

For Garmin HeadUnits:
I am not sure, but I do see this in the workout builder as option

If you’re using BreakAway, you can do switches to auto switch from ERG → RESIST /SLOPE Mode and vice versa.

hope that helps