OK.
Some medicines need to be refrigerated either to prevent microbial spoilage once opened (similar to, say, a bottle of pasta sauce). Some medicines need to be refrigerated to prevent chemical degradation (for example liquid antibiotics). In both cases the lower temperature slows down the rate of microbial growth/chemical degradation so the medicine lasts for the full course.
Many other medicines do not have to be refrigerated either because they are preserved to prevent microbial spoilage, or because they are very stable and don’t degrade much at room temperature.
There are a very few medicines that cannot be refrigerated because it affects them physically - for example crystals form, or they become too thick to handle. Ibuprofen liquid is not one of these.
In all cases, the storage instructions will be stated in the pack leaflet. If there are any special storage instructions, e.g. store below 25C, these will be on the bottle.
Below 25C means below 25C. If it meant “do not refrigerate” it would say “do not refrigerate”.
This is why you should read the label and the leaflet of any medicines you take or give to anyone else.