Mask Collections?

I loved to be able to mask layers for a render, but is it possible in v3.0 or v3.1? I can’t find a way. It always was easier, and I enjoyed watching every part of a scene develop. I can’t find a way to do that now. It’s 3.1 and everything is set into collections (which I don’t really like! Gimme my layers back!)