To take a screenshot on an Xiaomi Mi A1 (5X) phone, you must press the Power key and the Volume down button at the same time.
For Xiaomi phones, you can call up a quick access menu that has a special icon to take a screenshot.
As a result, your screenshot will be saved to the gallery. This screenshot can be sent to someone using instant messengers or shared on social networks.