diff --git a/src/render/instantview.ts b/src/render/instantview.ts
index e2968d6..71ac74e 100644
--- a/src/render/instantview.ts
+++ b/src/render/instantview.ts
@@ -25,7 +25,10 @@ const generateTweetMedia = (tweet: APITweet): string => {
// eslint-disable-next-line no-case-declarations
const { altText } = mediaItem as APIPhoto;
// eslint-disable-next-line sonarjs/no-nested-template-literals
- media += `
`;
+ media += `
`.format({
+ altText: altText ? `alt="${altText}"` : '',
+ url: mediaItem.url
+ });
break;
case 'video':
media += ``;