sharepoint online – Document libraries: Can you HIDE columns in a parent directory but SHOW them in children directories?

The parent directory of my document library contains folders. When I get into one of these folders, I want to be able to see the columns I’ve created, but NOT see them when I’m in the parent directory.

I’ve looked in the library settings but can’t seem to find anything about this.

Is there a way to do this out-of-the-box in SharePoint?