Open the Minecraft Launcher. Go to Installations, and check “modded” in the filter if visible. You should see a profile named OptiFine 1.21.x. Select that profile and click Play. In Minecraft, go to ...
You can install Minecraft Forge for free from the Forge website, and then use it to download and enable mods.