I clicked on Mirror object but it went to a wrong place
After some testings I figure it out - this must be your case, I think.

Before you use any modifier, ever apply transformations.

I rotated my mesh in object mode and applied the mirror and I got a bad mirror.

But after applying the rotation I got the desired mirror.

See the image below: