I sometimes let my kid use my phone, but I don’t want them accidentally opening certain apps where they could cause damage. How do I set certain apps to require an unlock?

I’ve seen that some apps have this feature built in, but I’d like a way to do it for any given app.

It’s a Samsung phone if that makes a difference.

FOSS is preferred, but any offline solution works.