Does Xposed Framework require to be buillt specifically for the device or just the Android version?
Built for the Android version, plus the device architecture (arm/arm64/x86). See the Xposed Framework download page (e.g. Android 8.1 (SDK27) here).

The reason behind this is that part of Xposed Framework is a modified app_process binary (Zygote), which is different for each arch.