You can install OptiFine for free by downloading it from the official website, opening the file, and then launching "Minecraft." ...
You can install mods in "Minecraft" by playing the "Java Edition" and using the third-party app Minecraft Forge.