Deuteronomy 13 provides a test for distinguishing a true and false prophets based on their theology of God.
Deuteronomy 13:1-3, Old Testament, The Church of Jesus Christ of Latter-Day Saints, accessed February 28, 2022
1 If there arise among you a prophet, or a dreamer of dreams, and giveth thee a sign or a wonder,
2 And the sign or the wonder come to pass, whereof he spake unto thee, saying, Let us go after other gods, which thou hast not known, and let us serve them;
3 Thou shalt not hearken unto the words of that prophet, or that dreamer of dreams: for the Lord your God proveth you, to know whether ye love the Lord your God with all your heart and with all your soul.