Conditional variable inheritance

Is there a way to inherit a boolean variable in a mode the parent component has a true boolean?

I have a navigational component that hides child links on small screens the navigation container “Is Section.” I am using modes to hide and show elements but don’t see a way to add that conditional logic.

I can always make two variants of the nav but I’m trying to be fancy…