If you raise the fifth of a major triad by one semitone, it’s called an augmented triad, which is a chord built by two stacking two major third intervals.
Raising the fifth in a dominant seventh chord gives the chord an altered sound.
Example: C E G#
Musical example: "Oh Darlin" by The Beatles