I have tried every possible way but was not successful for the operation required.
When AC Power 220V is fed to the PC814 optocoupler, the relay should turn off.
Please suggest modification in existing circuit to work as per desired operation.
Relay should be in ON when mains 230 AC to signal failure. It hould be OFF when MAINS 230AC available.
Modification that I had tried is as below image but it did not work.
The modification that tlfong01 suggested working fine.