Because IDE 2.x uses Arduino CLI under the hood, you can redirect its data folders to your portable directory.
Instructions for portable installation of IDE 2.0 - Arduino Forum arduino ide 2 portable
: Run the software without administrator privileges. Because IDE 2