Firefox has both profiles and containers.
However, the UX for Firefox's profiles feature is godawful.
Lately though, I find I prefer not to trust the application to manage this and just launch separate profiles in their own separate app namespaces using things like firecracker, firejail, or similar (depending on need).