The first seven councils were ecumenical. (I don’t know about Constantinople IV.)
After the schism with the Eastern Orthodox, the councils were referred to as General Councils of the West, because the East did not participate. The two reconciliation councils were called ecumenical, even though the results weren’t ratified by the Eastern Orthodox afterwards.
Around the time of the Protestant Reformation, the general councils were renamed as “ecumenical”. Since Vatican II, some Popes have been reviving the use of the word “general” in dialogue with the Eastern Orthodox.