Conditional formatting cannot hide rows or change the rows' height.
If you want to hide rows fully automatically, you need VBA.
As an alternative, you could "hide" the contents of rows by setting the number format to ;;; (three consecutive semicolons) in conditional formatting. The rows would still be visible, but they would be blank.