A yogi can be many things. Some yogis live like hermits in the woods, others are lay householders who hold down a day job and have families. There is everything in between too. The essence of being a yogi is that your aim is enlightenment and liberation while alive, and the aim of practice is not to reject the world and phenomena but to understand its true nature and free yourself from it wherever you might stand. This is in contrast to monks who shave their heads and renounce the world, living in monasteries, and for this reason many yogis keep their hair long. A yogi might do any number of things that a monk does not, or not, there is no certainty. A glance at the lives of the 84 Mahasiddhas of Tibetan Buddhism gives an idea of how diverse being a yogi can look like, and what it might mean.
Yogis are rooted in spiritual traditions and meditative practices, but we generally make life and our circumstances our main basis for practice, allowing our present karmas, relationships, and life situations to be our deepest teachers.