Solve[-x + Tan[y] == 0, y, Reals]
fails, but
Solve[-x + Cos[y] == 0, y, Reals]
Solve[-x + Sin[y] == 0, y, Reals]
Solve[-x + Cot[y] == 0, y, Reals]
works.
How to make it work with Tan?
Weirdly, but Solve[-x + Tan[y] == 0, y] works, as well as Solve[-x + Cot[y] == 0, y].
But Solve[-x + Cot[y] == 0, y] gives slightly different answer than Solve[-x + Cot[y] == 0, y, Reals].