Some context first. In Android using Kotlin, changing the visibility is done like in the following.
myView.visibility = View.VISIBLE
Setting