I have tried your given solution and found out that elementor pro cause the issue?
Can you check from your end.