An excerpt from the article The Elohim: What (or Who) Are They? by Michael S. Heiser.
The biblical use of elohim is not hard to understand once we know that it isn’t about attributes. What all the figures on the list have in common is that they are inhabitants of the spiritual world. In that realm there is hierarchy.
For example, Yahweh possesses superior attributes with respect to all elohim. But God’s attributes aren’t what makes him an elohim, since inferior beings are members of that same group. The Old Testament writers understood that Yahweh was an elohim—but no other elohim was Yahweh. He was species-unique among all residents of the spiritual world.
This is not to say that an elohim could not interact with the human world. The Bible makes it clear that divine beings can (and did) assume physical human form, and even corporeal flesh, for interaction with people, but that is not their normal estate. Spiritual beings are “spirits” (1 Kgs. 22:19–22; John 4:24; Heb. 1:14; Rev. 1:4). In like manner, humans can be transported to the divine realm (e.g., Isa. 6), but that is not our normal plane of existence. As I explained earlier, the word elohim is a “place of residence” term. It has nothing to do with a specific set of attributes.