Hole in the collider

Good day. I have long wondered if there is any way in Mesh Collider to make a hole we could go through. My point is, for example, if someone has a wall, can this be done so that when a button is clicked at some point in the collider, a hole is formed for the player to pass through. Is there a way to do that? I think about it for quite a long time and I can’t think of anything. I would like to add that I am still learning Unity

Hope this helps: