I must be missing something with android:visibility changes within a motion layout. Here’s a simplified version of my layout.
The other option depending on your use case is to make sure the view you want to control the visibility of isn't a direct descendant of the MotionLayout. Place it in a container view and you'll be able to set the visibility as normal