I think there is a difference between contractor/freelance and consultant. With the latter the client bring you for a general expertise on a type of problem. They don’t care which tech you use (they usually have requirements on the hosting though) as long as you solve the problem for the agreed cost.