My s40 has just frozen . It’s says it’s charging and is 23% . How can I reboot it ?

My S40 has  frozen . Says it’s charging but it isn’t . Pressing the button makes no difference . How do I reboot