D&C 27 states that Saints can use water instead of wine in the sacrament.
Section 27:1–4, Doctrine and Covenants, The Church of Jesus Christ of Latter-day Saints, accessed January 22, 2024
1 Listen to the voice of Jesus Christ, your Lord, your God, and your Redeemer, whose word is quick and powerful.
2 For, behold, I say unto you, that it mattereth not what ye shall eat or what ye shall drink when ye partake of the sacrament, if it so be that ye do it with an eye single to my glory—remembering unto the Father my body which was laid down for you, and my blood which was shed for the remission of your sins.
3 Wherefore, a commandment I give unto you, that you shall not purchase wine neither strong drink of your enemies;
4 Wherefore, you shall partake of none except it is made new among you; yea, in this my Father’s kingdom which shall be built up on the earth.