slightly younger than YA, the magnus chase series (norse percy jackson) has a canonically gender fluid character!
not gender-fluid but nonbinary, "i wish you all the best" by mason deaver. mason deaver also has a book about a trans college student that is interesting. deaver isn't my favorite (a little too doom and gloom for me personally, characters that are trans are all violently mentally ill, but not overall bad).
An argument can be made that "every day" by david levithan also featured a gender fluid character, though that one ranges more into sci-fi than queerness.
let me know if you like any of these!