Mountain pass techniques for some classes of nonvariational problems