According to the information we received from the Ministry of Foreign Affairs, there are no final legal solutions regarding the procedure for ending visas or temporary residence cards for foreigners - e.g. citizens of Ukraine who remain in Poland in the current situation. The border guard recommends its officers to approach each case individually and rather to instruct rather than impose fines or issue a decision to return if the stay is outside the period of visa validity or stay outside the visa-free period. Summarizing. There is no general regulation, and issues will be individually decided at the border (differently, when someone has just finished their visa and is trying to leave PL quickly, and differently if someone has been illegally for a long time).