I agree with what was said above.
If the story is mainly focused on the characters’ identities, than I would put it in the LGBTQ+ genre.
If the story is a mystery where the characters are LGBTQ+ but the main focus is on the mystery (instead of on the characters), then I would put it in mystery.