It's official: Smartphones will need to have replaceable batteries by 2027
(www.androidauthority.com)
But you can put up a firmware barrier that keeps the phone from booting up, or at least from operating at full advertised capacity, unless it's an "authentic" battery that's been officially registered to that particular phone's serial number, which can only be done via special tools and software that are only available to official Apple repair shops. They've done it with cameras and screens and buttons, why not batteries? It's just another part.