Car Inspection

Hello all, I have a used car lined up that I am interested in but I did have a question. Since the car is used, how would I go on about having the vehicle inspected/checked? I’m assuming not after I’ve purchased it 😅 would appreciate any help! Thank you community!