Before we get started with the steps, first try and reinstall Minecraft to ensure there are no corrupt files causing issues. Make sure you save your worlds properly so you don't lose any progress.
You can install mods in "Minecraft" by playing the "Java Edition" and using the third-party app Minecraft Forge.