Roots growing beyond a phalaenopsis pot can look untidy without proving the container is wrong. Assess the condition of the roots and medium before forcing exposed roots into ordinary soil.
Identify the orchid first. A moth orchid's growing arrangement is not a general model for every plant sold as an orchid.
Look at the medium as well as the space
Has the growing material broken down, stayed wet unusually long or become difficult to manage? Is there sound new root growth? Those observations help decide whether repotting is needed and when to do it.
Choose a suitable orchid medium and a container that accommodates the root system. Do not select a dramatically larger pot simply because roots are visible above it.
Handle active root tips carefully and keep the plant stable after repotting. Follow watering and aftercare appropriate to the orchid and the work you carried out. An attractive cover should still allow inspection and drainage. The aim is a usable root environment, not hiding every visible root until the plant looks like a conventional soil-grown houseplant.
The RHS moth-orchid guide explains that aerial roots are normal in these epiphytes and advises against burying them. Visible roots alone therefore do not establish a need to pack the plant into more compost.
Related reading: Phalaenopsis Potting Mix: Roots, Containers and Repotting.