Where for you to achieve this there are things you need to consider, this will guide you and help you to be able to do this even in most camera with small lens.
Next thing you wanna consider is your distance between the subject just make sure you are not too close i cant give a specific distance cause every lens will give you diffrent distance so just make sure you are not too close otherwise you might end up getting your foreground blur. ![rikky-alvg)