How to make a GIF smaller without ruining the loop
Fit an animated GIF under an upload limit by changing one setting at a time and checking that the movement and captions still read.

A GIF that plays perfectly on your phone can still exceed an upload limit. Keep the original and optimize a separate copy. That way you can try a change, check the file and undo it without starting over. The goal is to make the loop fit, not to make it as small as possible.
Find the limit before you export
Confirm the file limit and supported formats where the GIF will actually go. A message, a comment and a profile upload can be treated differently even inside the same service. Note the original file size and play the saved GIF once to make sure it is animated before editing.
For example, if your GIF is 8 MB and the destination caps uploads at 5 MB, aim a little below the cap. The exact setting depends on the clip. Save exports with a short label such as “trimmed” or “smaller” and compare the file sizes rather than relying on an editor preview.
Cut time that doesn't earn its place
Start by trimming extra time at the beginning or end if the action still makes sense. Remove an unnecessary long hold or repeated beat, not the moment that makes the joke work. Play several loops to see whether the new ending cuts awkwardly into the beginning.
If the loop is already as short as it should be, reduce its width and height together so the picture stays in proportion. Try a modest reduction and check at the size people will see, especially if there is a caption. Keep the new export only if it is meaningfully smaller and still readable.
Lower frame rate only if the motion survives
If you need a little more room, try a small reduction in frame rate in a GIF editor that supports it. A simple blink might look fine with fewer frames, while a quick hand gesture can start to jump. Changing fewer settings at once makes it easier to see which tradeoff helped.
Avoid repeatedly compressing the last export. Go back to the original or the best intermediate copy when you want to compare a different setting. There is no one combination that preserves every caption, color and movement at the same size.
Check the exported file and the destination
Open the exported file, not just the editor preview. Check the file size, first frame, caption and three or four repeats. If you can, upload a test privately and view the result as the recipient would. A file under the limit may still be converted or displayed as a still.
If the destination accepts video and you do not need an actual GIF, an MP4 version may be a practical alternative. Check how playback and looping work there rather than assuming it behaves like a GIF. Keep the GIF if the destination requires that format.