As of now, Optifine is only available for Minecraft Java Edition. So it cannot be installed in Minecraft's Bedrock Edition.