How do you do Cloaking in SEO?
Welcome to the forums, @kannnukanmani.
The short answer to your question is - you don’t. Not unless you want your site penalised for violating Google’s guidelines.
Other search engines have similar policies.
Cloaking is a so-called “black hat” technique, and as such, something we do not want discussed here.