How to stop foundation from separating on face?

A lot of times my foundation separates or looks powdery on my face after like a hour. I use a moisturizer and primer before, maybe I need to let them soak in for a long time before applying foundation? Anyone have good tips or products?

this happens with any foundation I use and I’ve tried a lot