@embeddedmz , did you try to follow this instructions?
https://forums.ubports.com/topic/6951/ubports-quick-and-simple-install-on-xiaomi-mi-a2
I was in same sittuation, phone I bought had Android 10 but I downgraded it following tutorial I linked above.