I did as you said, but then it printed diagonally on the other side.
After that, I removed the encoder sensor and ran a microfiber cloth through it. I used acetone for the tape and isopropyl for the sensor. I am very grateful to you for directing me to the problem and helping me to solve it.