Caterpillar or beetle grub/larva?

Caterpillar or beetle grub/larva?

Observation - Caterpillar or beetle grub/larva? - UK and Ireland. Description: This animal was on the underside of a dandelion leaf in the garden. The head is the opposite end to where the 4 brown marks are. It has 3 pairs of segmented legs on the front and back and stubby legs along the rest of it's body. Any help ID'ing this ca

This animal was on the underside of a dandelion leaf in the garden. The head is the opposite end to where the 4 brown marks are. It has 3 pairs of segmented legs on the front and back and stubby legs along the rest of it's body. Any help ID'ing this caterpillar/grub would be appreciated. Thanks.