The Short Answer
Your telescope is working perfectly. An inverted image is normal.
Every simple lens and every curved mirror flips an image when it focuses light. This is not a defect — it is how optics work. The famous astronomers who discovered Neptune, Uranus, and the moons of Jupiter all looked through inverted images. It does not affect what you can see or how well you can observe. Most experienced astronomers never think about it.
That said, the exact type of inversion you see depends on your telescope type and whether it uses a star diagonal. Here is the complete breakdown.