If the screen says This app isn't compatible with your device or App not compatible with your device, the package was not built for this phone.
HyperOS on a Xiaomi and One UI on a Samsung do not change the rule. What counts is the Android number under that name, and whether the processor is 32 or 64 bit.