Is there a way to limit access to a button to a public user?

I've been trying to find a way to limit access to certain parts of my application to a public user, a user who doesn't require login because they access the app through a public link, but I can't seem to configure it. Is there any way to do this?

Welcome to the community.

The current_user in public app is lack of information

image
image

So maybe you can use hidden the components like this
{{!current_user.sid}}