It appears that when the door was last removed and then replaced that the hinges weren’t seated properly in the slots of the oven door before the latches were locked down.
On ovens that I’ve had with removable doors while the oven door is in the full down position you need to release the locks, then partially close the oven door leaving about 4” space open, then grab onto both sides of the door securely and lift it straight up off of the hinges, which you’ll need to do the remove it and the reinstall it properly.
To reinstall leave the hinges at the same position they were in when you removed the door. Holding the oven door securely on both sides near the top of the door carefully lower it back onto the hinges, now lower the door to the open position, being careful not to move the door off the hinges and then close the locks on both sides and then close the oven door. If it still doesn’t close properly on both sides, repeat the above steps, being very careful that the hinges don’t move on either side from the oven door, both sides of the oven door need to be fully engaged with the hinges before closing the locks.
It can be a challenge sometimes to get the door back on correctly, practice makes perfect. Once you get it right you’ll hopeful remember how to do it again the next time you remove the oven door to clean the oven.
You may also find a You Tube video on how to remove and reinstall and oven door, they all work basically the same, with just slight differences in the way the locks open and close depending on the brand and age of the stove. But this would give you a visual point of reference.
HTH,
Eddie