I agree with Cheticamp and would like to add that you've got to toggle visibility individually as he said, or either create a general group to change all views inside and a local group to change only a specific view, like below:
<ImageView
android:id="@+id/view1"
android:layout_width="0dp"
android:layout_height="0dp"
/>
<ImageView
android:id="@+id/view2"
android:layout_width="0dp"
android:layout_height="0dp"
/>
<android.support.constraint.Group
android:id="@+id/group1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="visible"
app:constraint_referenced_ids="view1,view2" />
<android.support.constraint.Group
android:id="@+id/group2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:constraint_referenced_ids="view1" />
It won't be possible to change a single view visibility that is inside a group, but this way you can change group1 visibility or group2 visibility.