Bots of search engines are exploring the source code. We can say that bots look at your web pages as a web programmer - from the inside. Therefore, the answers to your questions:
How about a workaround that we show this after few seconds i.e. 1 or 2 seconds?
This is manipulation to deceive Google and is associated with a violation of Google's recommendations. These actions have a high risk of sanctions from Google.
Can google detect this...?
Of course, the Google bot can find this when examining the source code of your web pages.
...is it good thing to do from SEO perspective.?
Users want to get the information they need immediately, but not your information, which may be not related to their search. Users will see the deception of their expectations and walk away from your website as from a fraudulent. SEO perspective: Your website will lose users, and its rating will drop.