If you actually looked at the balance sheet of twitter before Elon took it over it was quite possible to make it profitable. It would have needed to cut cost and probably try and to boost its ad platform a bit more but well within the realm of possibilities.
With the debt that Elon has saddled them with I doubt they will ever be profitable again without declaring bankruptcy.