On the OptiFine site, choose the version compatible with Minecraft 1.21 (preview or stable). Click “Mirror” if direct download is blocked or slow. Players have to save the .jar file to a local folder ...