An iPad won’t work, and a tablet will only work if it runs a supported OS, and there aren’t as many tablets running Windows as there used to be (I was unable to replace my Samsung Galaxy Book 12 w/ a tablet — had to get the convertible Book 3 Pro 360).
A Raspberry Pi 4 is a good option for the technically inclined: