The portrait mode on your smartphone camera will automatically shorten the depth of field, keeping your subject in focus while blurring the background. Using a DSLR or mirrorless camera in manual mode, you'll need to know the focus range of your lens.