The camera of Xiaomi Mi A1 supports capturing bokeh effect to create a blurred background.
Here's how to capture bokeh effect on Xiaomi Mi A1:
Step 1: Access the camera.

Access the camera.
Step 2: Choose the person icon.

Choose the person icon.
Step 3: The device will display a notification to blur the background and keep the subject approximately 2.5m away.

The device now prompts to blur the background and keep the subject approximately 2.5m away.
Step 4: Take the shot and review the outcome.

Take the shot and review the outcome.
With that, your setup process is complete. Wishing you success.