If you get red gunk out of the ears, it is mites, if not, is it round and spreading, if so, could be fungus, or ringworm,
Could be a bite or sting, what I do know, being involved with veternarians and shelter animals for 20 years, cats, get infections sooner than dogs, it should be attended...