This is a common issue, many houses have this. If the available space is very tight (like half an inch), you fit nothing, just put architrave around the top and other side.
If the available space is a bit bigger, like 1 inch, you can fit a piece of plain stripwood that complements the (usually...