In Australia this would not comply with our fire code. Putting it behind a cabinet is fine; but it must have visible signs that can be seen from 20m away with a 20/20 eyesight (assuming no obstruction etc).
This applies to all portable extinguishers; even if it’s additional ones you’ve added beyond what’s required. The idea and intent is simple: train people and first responders to locate portable fire extinguishers by the sign.
[1]: https://appleinsider.com/articles/18/01/09/iphone-battery-fi...
The closest thing I've seen is a big push from the NYC government to get people to stop charging their sketchy ebike/scooter battery packs indoors in hallways and apartments, which has caused more than a few fires.
https://www.google.com/search?client=firefox-b-d&q=nyc+ebike...
I wonder if it would actually be a negative if a member of the public grabbed a visible extinguisher during a battery fire?