How can i put this
${window.scrollY > 0 ? " bg-slate-50" : ""}
Conditional statement only for medium or large screens on tailwind?
>Solution :
${window.scrollY > 0 ? "max-md:bg-slate-50" : ""}
you can also get the reference from the documentation of Tailwind for more info:
https://tailwindcss.com/docs/responsive-design#targeting-a-single-breakpoint