What version of Tailwind CSS are you using?
v3.4.10
Reproduction URL
https://play.tailwindcss.com/rHaI81WQuv
Describe your issue
In example above class max-lg:hidden is not working, but of course none of max:breakpoint classes works when I have custom media-query with raw setup in tailwind config.
If you'll remove this line (in tailwind play/config):
'shortdesktop': { 'raw': '(max-height: 950px) and (min-width: 768px)' },
it works again