How do I make a camera not go past the floor?

I keep having an issue where if I play the game, the camera works fine but it also kind of allows you to see what’s under the floor. I built a camera blocker in the floor so that you can still see the floor but the issue is, I’m not sure how to make the camera not go past this object and I haven’t found a solution to it at all. Please help me out here, thanks…