Apple have recently released this battery that attaches to the back of iPhone 12/12 Pro magnetically:
https://www.apple.com/uk/shop/product/MJWY3ZM/A/magsafe-battery-pack
I haven't got one, but did have the previous smart battery cases for iPhone 7.
As with all things Apple, it's a bit pricier...