* If you are referring to a grandmother who is great in some way, the correct spelling is "great grandma." This emphasizes her greatness.
* If you are referring to a great-grandmother, the correct spelling is "great-grandmother." This clarifies the familial relationship.
It's best to use "great-grandmother" to avoid any confusion.