Stoves need to breathe. They need space to not catch your house on fire. This is called clearance.
Your manual says: “Keep 6 inches from the wall.” Or 2 inches. Or 12. It varies like a teenager’s mood.
If you put a stove against a wooden wall, you get a bonfire. A smoky bonfire. With your kitchen inside it.
How Do You Measure For A Gap On A Stove? – OZIEH
Use a tape measure. Respect the gap. Your house will thank you.