A great white shark has been spotted off the coast of a popular Perth beach.