It would require Liquid/CSS knowledge to implement this feature, I'm afraid that unfortunately there is no simple copy-paste solution otherwise I'd happily guide you through.
In case you're unfamiliar with these technologies you'll likely need to hire a Shopify developer to assist you.
If it is of your wish, I present myself available to help you.
I've been hired by 20+ people from this very forum, you can read their recommendations about my work clicking here.
Welcome to the Shopify community!
and Thanks for your Good question.
Please share your site URL,
So I will check and provide a solution here.