If the context is a name or title, it is often written as one word in English transliteration:
Meaning: Mountain Princess / Princess of the Mountains yama no hime
The most accurate and natural rendering of in solid text (without spaces or capitalization changes) is: If the context is a name or title,
However, if you need to preserve the original romanized Japanese word boundaries while using solid text (i.e., no spaces but clear reading), the standard way is: no spaces but clear reading)