Search for mini ITX motherboards compatible with i5-8400 processor.
Yes, there are mini ITX motherboards compatible with the i5-8400. They typically support both DDR3 and DDR4 memory options.
There are various DDR4 options available. The reason for choosing an older CPU like this isn't clear—what specific needs are you trying to meet?