This is fine if the top of the oven is flush. Generally, your built in oven is okay to be completely flush at the top if there is up to 20mm of ventilation space provided at the top.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.