How do I change my body and content font size in mobile and tablets only?

I have my font size set to 22px in the customizing menu but that changes the font on mobile too.

I want to set the mobile font to around 16px-18px but every bit of code I’ve grabbed from online doesn’t seem to work

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer