It depends.
Generally speaking, you don’t become a tax resident of a country unless you live there for 183 days in a given tax year. Even then, getting set up to pay taxes is a challenge, as tax departments aren’t set up to accept money from a tourist who doesn’t have any official ties to the country. It can be done, but it’s a pain.
As a digital nomad myself, I always planned to just never stay in a country longer than six months. As an American, I have the joy of paying American taxes anywhere I live in the world, which makes things extra fun.
For now, it seems systems are not streamlined to handle the burden of a high number of short term residents. Countries will adapt over time, as it seems Portugal is doing now. Some countries issuing digital nomad visas may exempt nomads from paying taxes or make it easier to pay taxes locally.