Utilizing ultrafast light-matter interaction to manipulate electronic states of quantum materials is an emerging area of research in condensed matter physics. It has significant implications for the development of future ultrafast electronic devices. However, the ability to induce long-lasting metastable electronic states in a fully reversible manner is a long-standing challenge. Here, by using ultrafast laser excitations, we demonstrate the capability to manipulate the electronic polar states in the charge-density-wave material EuTe4 in a non-volatile manner. The process is completely reversible and is achieved at room temperature with an all-optical approach. Each induced non-volatile state brings about modifications to the electrical resistance and second harmonic generation intensity. The results point to layer-specific phase inversion dynamics by which photoexcitation mediates the stacking polar order of the system. Our findings extend the scope of non-volatile all-optical control of electronic states to ambient conditions, and highlight a distinct role of layer-dependent phase manipulation in quasi-two-dimensional systems with inherent sublayer stacking orders.