As far as I know recently the unlock process is more complicated and depends by the device market destination.
For global devices check the topic: Unlock_hyperOS_ Global devices
For Chinese devices is another discussion, but basically involve a payment service: Unlock HyperOS Bootloader on Chinese Device.
For older devices with Miui should be possible to unlock the bootloader using Xiaomi official tools: Unlock Your Mi Device