Click on the Setting on the home screen.
Select Security and Privacy, click on Vibe Casting
Enable either the Require cast code or the Require on-screen confirmation option.
Need more help?
You can set the casting to require a pin or require confirmation before allowing the cast/share screen/screen mirror.