This is a real photograph
It was taken at the funeral of Nelson Mandela in 2013.
At the time, while there was controversy over whether or not it was disrespectful to smile and take a selfie at a state funeral, the photo itself was fact-checked as real.