I’ve owned about 10 different friers over the past 20 years and the symptoms you describe are typical of a failing thermopile. A thermopile has 2 wires at the termination where it connects to the gas valve. A thermocouple, on the other hand, has a copper tube/wire that screws into the valve...