How can i show my website to only mobile visitors?

I want to allow only mobile visitors. So, can i do this with Cloudflare?

You’d have to create a firewall rule to filter out any User Agent Strings you don’t want and block them.